Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
1d7eb90a
Commit
1d7eb90a
authored
Oct 25, 2016
by
Robert Lyon
Committed by
Gerrit Code Review
Oct 25, 2016
Browse files
Merge "Bug #1636087: Update Glogster's iframe URL only if its icon record was not deleted."
parents
a09bd7af
a4c1a75d
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/db/upgrade.php
View file @
1d7eb90a
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment