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', '');
delete_records('iframe_source', 'prefix', '');
if (!get_field('iframe_source', 'prefix', 'prefix', '')) {
if (!get_field('iframe_source', 'prefix', 'prefix', '') &&
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' => '', 'name' => 'Glogster'));
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