Hi,
"stripped" theme allows the user to navigate through the photos in the album using arrow keys on the keyboard. At least this is how it worked for me before, because now it doesn't. Dunno exactly when it broke (I went through many upgrades and changed servers over the years). Additionally when I click any picture in any album the following message pops up in the error_log:
PHP Notice: escape: unsupported type: jasvascript - returning unmodified string in /somedir/gallery/include/smarty/libs/plugins/modifier.escape.php on line 186, referer: https://somesite/picture.php?/1722/category/39
Indeed, themes/stripped/template/picture_nav_buttons.tpl contains several lines with "jasvascript":
/*Up*/case 38: if (e.ctrlKey){ldelim}window.location="{$U_UP|@escape:jasvascript}".replace("&","&"); return false; } break;
Is "jasvascript" a typo, or is it intentional?
When I replace all occurrences of "jasvascript" in this file with "javascript", then the error no longer shows up and the navigation keys magically work again.
stripped 14.b, Piwigo 14.2.0, PHP 7.4.33, self-hosted.
Offline
Looks very much like a typo.
https://piwigo.org/dev/browser/extensio … uttons.tpl is 12 years old though with the same content.
Offline