Since (#2557), setCookie() in themes/standard_pages/js/standard_pages.js reads a cookie_path, but only identification.tpl declares it. On register.php, password.php and profile.php the page throws Uncaught ReferenceError: cookie_path is not defined as soon as toggle_mode() runs, so the dark/light mode cookie is never set and the rest of the page init does not run.
On identification.tpl the variable is written without quotes (var cookie_path = {$COOKIE_PATH};), which is a JS syntax error when the gallery is at the root of the domain (var cookie_path = /;)
Since (#2557), setCookie() in `themes/standard_pages/js/standard_pages.js` reads a `cookie_path`, but only `identification.tpl` declares it. On `register.php`, `password.php` and `profile.php` the page throws `Uncaught ReferenceError: cookie_path is not defined` as soon as `toggle_mode()` runs, so the dark/light mode cookie is never set and the rest of the page init does not run.
On `identification.tpl` the variable is written without quotes (`var cookie_path = {$COOKIE_PATH};`), which is a JS syntax error when the gallery is at the root of the domain (`var cookie_path = /;`)
<!-- github-sync-id:5779861954 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Since (#2557), setCookie() in
themes/standard_pages/js/standard_pages.jsreads acookie_path, but onlyidentification.tpldeclares it. Onregister.php,password.phpandprofile.phpthe page throwsUncaught ReferenceError: cookie_path is not definedas soon astoggle_mode()runs, so the dark/light mode cookie is never set and the rest of the page init does not run.On
identification.tplthe variable is written without quotes (var cookie_path = {$COOKIE_PATH};), which is a JS syntax error when the gallery is at the root of the domain (var cookie_path = /;)