Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Languages fail if there is a directory in PIWIK_INCLUDE_PATH/lang #580

Closed
anonymous-matomo-user opened this issue Mar 3, 2009 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@anonymous-matomo-user
Copy link

I have a CVS directory in my lang directory (I have checked a full copy into CVS) this makes getAvailableLanguages() read the CVS directory as a language which fails with:

Warning: Piwik_LanguagesManager_API::require(lang/.php) [function.Piwik-LanguagesManager-API-require]: failed to open stream: No such file or directory in C:\data\Callisto\thing\UI\piwik\plugins\LanguagesManager\API.php on line 54

Simple fix:
Screen only for .php files by changing plugins/LanguagesManager/API.php line 33 (version 0.2.31):
FROM:
$languages = glob($path . “_”);
TO:
$languages = glob($path . “_.php”);

More complex fix:
Filter out directories from the list of results from glob.

@mattab
Copy link
Member

mattab commented Mar 3, 2009

already fixed

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants