From 8a8965ab129fef0019d2386d7680fa787327e8be Mon Sep 17 00:00:00 2001 From: markseu Date: Sun, 24 Feb 2019 20:12:17 +0100 Subject: [PATCH] Updated installation for PHP 5.x --- system/extensions/install.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/extensions/install.php b/system/extensions/install.php index 00b66c3..02d3a67 100755 --- a/system/extensions/install.php +++ b/system/extensions/install.php @@ -93,7 +93,8 @@ class YellowInstall { preg_match("/^\s*(.*?)\s*:\s*(.*?)\s*$/", $line, $matches); if (!empty($matches[1]) && !empty($matches[2]) && strposu($matches[1], "/")) { list($dummy, $entry) = explode("/", $matches[1], 2); - $language = array_pop(explode(",", $matches[2])); + $flags = explode(",", $matches[2]); + $language = array_pop($flags); if (preg_match("/^(.*)\.php$/", basename($entry), $tokens) && in_array($language, $languages)) { $languagesFound[$language] = $tokens[1]; }