@robocoder opened this Issue on February 22nd 2009 Contributor

From forum, if the lang directory contains a _vti directory, an error occurs.

This can also happen if you test Piwik from your svn working directory, and your editor leaves behind files, such as "lang/en.php~".

Index: plugins/LanguagesManager/API.php
===================================================================
--- plugins/LanguagesManager/API.php    (revision 906)
+++ plugins/LanguagesManager/API.php    (working copy)
@@ -30,7 +30,7 @@
            return self::$languageNames;
        }
        $path = PIWIK_INCLUDE_PATH . "/lang/";
-       $languages = glob($path . "*");
+       $languages = glob($path . "*.php");
        $pathLength = strlen($path);
        $languageNames = array();
        foreach($languages as $language) 
@mattab commented on February 27th 2009 Owner

committed, thanks for patch

This Issue was closed on February 27th 2009
Powered by GitHub Issue Mirror