[Scummvm-git-logs] scummvm-web master -> 02a48194c6b4bcd15539bbe82bfce4495dd7c05f

Mataniko mataniko at gmail.com
Wed Dec 30 02:11:56 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .

Summary:
02a48194c6 WEB: Really fix translation links


Commit: 02a48194c6b4bcd15539bbe82bfce4495dd7c05f
    https://github.com/scummvm/scummvm-web/commit/02a48194c6b4bcd15539bbe82bfce4495dd7c05f
Author: Mataniko (mataniko at gmail.com)
Date: 2020-12-29T21:11:49-05:00

Commit Message:
WEB: Really fix translation links

Changed paths:
    include/Controller.php


diff --git a/include/Controller.php b/include/Controller.php
index 5345c159..aceca025 100644
--- a/include/Controller.php
+++ b/include/Controller.php
@@ -69,7 +69,7 @@ class Controller
 
         // Construct lang URL
         $langs = join("|", array_keys($available_languages));
-        $pageurl = preg_replace("/\/($langs)\/?/i", '/', $_SERVER['REQUEST_URI']);
+        $pageurl = preg_replace("/\/\b($langs)\b\/?/i", '/', $_SERVER['REQUEST_URI']);
         /* Check RTL */
         $rtl = $this->isRtl($available_languages[$lang]);
 




More information about the Scummvm-git-logs mailing list