Browse Source

Use Plugin::classPath() instead of hardcoded "src" in path.

ADmad 11 years ago
parent
commit
15a8e712e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/I18n/MessagesFileLoader.php

+ 1 - 1
src/I18n/MessagesFileLoader.php

@@ -161,7 +161,7 @@ class MessagesFileLoader {
 		}
 
 		if (Plugin::loaded($pluginName)) {
-			$basePath = Plugin::path($pluginName) . 'src' . DS . 'Locale' . DS;
+			$basePath = Plugin::classPath($pluginName) . 'Locale' . DS;
 			foreach ($folders as $folder) {
 				$searchPath[] = $basePath . $folder . DS;
 			}