diff --git a/repository/repository_callback.php b/repository/repository_callback.php index da8b9416374..b657d29373e 100644 --- a/repository/repository_callback.php +++ b/repository/repository_callback.php @@ -67,17 +67,21 @@ $repo->callback(); // If Moodle is working on HTTPS mode, then we are not allowed to access // parent window, in this case, we need to alert user to refresh the repository // manually. -$strhttpsbug = get_string('cannotaccessparentwin', 'repository'); +$strhttpsbug = json_encode(get_string('cannotaccessparentwin', 'repository')); $strrefreshnonjs = get_string('refreshnonjsfilepicker', 'repository'); $js =<<