Commit db1b6270 authored by Nigel McNie's avatar Nigel McNie
Browse files

json_encode a javascript string

parent 4dc30b0b
...@@ -42,7 +42,7 @@ foreach ($sitepages as $page) { ...@@ -42,7 +42,7 @@ foreach ($sitepages as $page) {
} }
asort($pageoptions); asort($pageoptions);
$getstring = array('discardpageedits' => "'" . get_string('discardpageedits','admin') . "'"); $getstring = array('discardpageedits' => json_encode(get_string('discardpageedits','admin')));
$f = array( $f = array(
'name' => 'editsitepage', 'name' => 'editsitepage',
......
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