Commit 1d7eb90a authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug #1636087: Update Glogster's iframe URL only if its icon record was not deleted."

parents a09bd7af a4c1a75d
......@@ -4702,7 +4702,9 @@ function xmldb_core_upgrade($oldversion=0) {
log_debug('Add iframe url in iframe_source table for glogster educational new url pattern');
delete_records('iframe_source', 'prefix', 'edu.glogster.com/glog/');
delete_records('iframe_source', 'prefix', 'edu.glogster.com//glog/');
if (!get_field('iframe_source', 'prefix', 'prefix', 'edu.glogster.com//?glog/')) {
if (!get_field('iframe_source', 'prefix', 'prefix', 'edu.glogster.com//?glog/') &&
get_field('iframe_source_icon', 'name', 'name', 'Glogster')) {
// Only insert the new Gloster URL if the icon has not been deleted by the user.
insert_record('iframe_source', (object) array('prefix' => 'edu.glogster.com//?glog/', 'name' => 'Glogster'));
}
update_safe_iframe_regex();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment