[Scummvm-git-logs] scummvm-web master -> 9523ab7d3203eb513d0bd00af438b18247668aa9
Mataniko
mataniko at gmail.com
Sun Jan 10 13:24:44 UTC 2021
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:
9523ab7d32 WEB: Fix language menu
Commit: 9523ab7d3203eb513d0bd00af438b18247668aa9
https://github.com/scummvm/scummvm-web/commit/9523ab7d3203eb513d0bd00af438b18247668aa9
Author: mataniko (mataniko at gmail.com)
Date: 2021-01-10T08:24:25-05:00
Commit Message:
WEB: Fix language menu
Changed paths:
public_html/index.php
diff --git a/public_html/index.php b/public_html/index.php
index 5822b8c1..2deb6411 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -26,6 +26,9 @@ global $lang, $available_languages;
$languages = array_slice(scandir(DIR_DATA),2);
$available_languages = [];
foreach ($languages as $l) {
+ if (!\is_dir(DIR_DATA . "/$l")) {
+ continue;
+ }
$available_languages[$l] = \locale_get_display_name($l, $l);
}
More information about the Scummvm-git-logs
mailing list