diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-28 02:45:25 +0400 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-28 02:45:25 +0400 |
commit | cb769d35031a6fc516790777ddb544e503d9b7c8 (patch) | |
tree | 0204658a4a081947ddf4e374cf44d8907acc523d /plugins/LanguagesManager | |
parent | 964b0a43ae4db6602ebb923b7d164bae2b478ef3 (diff) |
fixes #743 - optimize include path; refs #631
Diffstat (limited to 'plugins/LanguagesManager')
-rw-r--r-- | plugins/LanguagesManager/API.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/LanguagesManager/API.php b/plugins/LanguagesManager/API.php index a867c4043c..42154eb094 100644 --- a/plugins/LanguagesManager/API.php +++ b/plugins/LanguagesManager/API.php @@ -43,13 +43,13 @@ class Piwik_LanguagesManager_API static public function getAvailableLanguagesInfo() { - require "lang/en.php"; + require PIWIK_INCLUDE_PATH . "/lang/en.php"; $englishTranslation = $translations; $filenames = self::getAvailableLanguages(); $languagesInfo = array(); foreach($filenames as $filename) { - require "lang/$filename.php"; + require PIWIK_INCLUDE_PATH . "/lang/$filename.php"; $translationStringsDone = array_intersect_key($englishTranslation, $translations); $percentageComplete = count($translationStringsDone) / count($englishTranslation); $percentageComplete = round(100 * $percentageComplete, 0); @@ -76,7 +76,7 @@ class Piwik_LanguagesManager_API $languagesInfo = array(); foreach($filenames as $filename) { - require "lang/$filename.php"; + require PIWIK_INCLUDE_PATH . "/lang/$filename.php"; $languagesInfo[] = array( 'code' => $filename, 'name' => $translations['General_OriginalLanguageName']); } self::$availableLanguageNames = $languagesInfo; @@ -89,7 +89,7 @@ class Piwik_LanguagesManager_API { return false; } - require "lang/$languageCode.php"; + require PIWIK_INCLUDE_PATH . "/lang/$languageCode.php"; $languageInfo = array(); foreach($translations as $key => $value) { |