Skip to content

Commit

Permalink
Use Plugin::classPath() instead of hardcoded "src" in path.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Aug 15, 2014
1 parent df9c6ed commit 15a8e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/I18n/MessagesFileLoader.php
Expand Up @@ -161,7 +161,7 @@ public function translationsFolders() {
}

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;
}
Expand Down

0 comments on commit 15a8e71

Please sign in to comment.