edit: move fotocover page to foto/ subdirectory
[minimedit.git] / foto / album.inc.php
index 94100835dac88ba958f9440c06349a2d8a7c68d1..c3f3464b6386c803af905d8fbce83c1aba98b719 100644 (file)
@@ -26,7 +26,7 @@ function openphotoswipe(index) {
 <?php
 if (!empty($User['admin'])) {
        printf("\t\t\t{id:'%s', label:'%s', url:'%s'},\n",
-               'cover', 'Cover instellen', "/edit/fotocover$Args?img={{image_url}}"
+               'cover', 'Cover instellen', "/edit/foto/cover$Args?img={{image_url}}"
        );
 }
 ?>
@@ -74,7 +74,7 @@ function imgjustify() {
                targetRowHeight: 200,
        };
        var layout = require('justified-layout')(ratios, config);
-       var thumbreplace = !window.location.search.test(/[?&]blur\b/);
+       var thumbreplace = !/[?&]blur\b/.test(window.location.search);
 
        gallery.style.position = 'relative';
        gallery.style.height = layout.containerHeight + 'px';