summaryrefslogtreecommitdiff
path: root/modules/gallery/views/admin_languages.html.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-08-29 22:54:20 -0700
committerAndy Staudacher <andy.st@gmail.com>2009-08-29 22:54:20 -0700
commitb9bd1681a3b1496c0f1bbe5e6254ab4fd0c9fe30 (patch)
tree0ce300329bb2b6ace0e0fd72c94fe5fbb7e4db96 /modules/gallery/views/admin_languages.html.php
parent952c8856098dcfd9673d344fc71be85b303c8fb1 (diff)
Update all code to use helper method html::clean(), html::purify(), ... instead of SafeString directly.
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');
}