浏览代码

Updated installation for PHP 5.x

markseu 6 年之前
父节点
当前提交
8a8965ab12
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      system/extensions/install.php

+ 2 - 1
system/extensions/install.php

@@ -93,7 +93,8 @@ class YellowInstall {
                     preg_match("/^\s*(.*?)\s*:\s*(.*?)\s*$/", $line, $matches);
                     preg_match("/^\s*(.*?)\s*:\s*(.*?)\s*$/", $line, $matches);
                     if (!empty($matches[1]) && !empty($matches[2]) && strposu($matches[1], "/")) {
                     if (!empty($matches[1]) && !empty($matches[2]) && strposu($matches[1], "/")) {
                         list($dummy, $entry) = explode("/", $matches[1], 2);
                         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)) {
                         if (preg_match("/^(.*)\.php$/", basename($entry), $tokens) && in_array($language, $languages)) {
                             $languagesFound[$language] = $tokens[1];
                             $languagesFound[$language] = $tokens[1];
                         }
                         }