summaryrefslogtreecommitdiff
path: root/modules/gallery/views/admin_languages.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/views/admin_languages.html.php')
-rw-r--r--modules/gallery/views/admin_languages.html.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/views/admin_languages.html.php b/modules/gallery/views/admin_languages.html.php
index 4bee9bb1..052d749b 100644
--- a/modules/gallery/views/admin_languages.html.php
+++ b/modules/gallery/views/admin_languages.html.php
@@ -40,7 +40,7 @@
</form>
<script type="text/javascript">
- var old_default_locale = "<?= SafeString::of($default_locale)->for_js() ?>";
+ var old_default_locale = "<?= html::escape_for_js($default_locale) ?>";
$("input[name='installed_locales[]']").change(function (event) {
if (this.checked) {
@@ -57,7 +57,7 @@
dataType: "json",
success: function(data) {
if (data.result == "success") {
- el = $('<a href="<?= url::site("admin/maintenance/start/gallery_task::update_l10n?csrf=$csrf")->for_js() ?>"></a>'); // this is a little hack to trigger the update_l10n task in a dialog
+ el = $('<a href="<?= html::escape_for_js(url::site("admin/maintenance/start/gallery_task::update_l10n?csrf=$csrf")) ?>"></a>'); // this is a little hack to trigger the update_l10n task in a dialog
el.gallery_dialog();
el.trigger('click');
}