Skip to content

Commit

Permalink
BUG Hardcoded project name in include_by_locale()
Browse files Browse the repository at this point in the history
include_by_locale() should not use hardcoded default project name 'mysite' (fixes #7969).
  • Loading branch information
elvinas-liut committed Dec 14, 2012
1 parent 683f388 commit 55b611d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i18n/i18n.php
Expand Up @@ -1956,7 +1956,7 @@ public static function include_by_locale($locale, $clean = false) {

// Sort modules by inclusion priority, then alphabetically
// TODO Should be handled by priority flags within modules
$prios = array('sapphire' => 10, 'framework' => 10, 'admin' => 11, 'cms' => 12, 'mysite' => 90);
$prios = array('sapphire' => 10, 'framework' => 10, 'admin' => 11, 'cms' => 12, project() => 90);
$modules = SS_ClassLoader::instance()->getManifest()->getModules();
ksort($modules);
uksort(
Expand Down

0 comments on commit 55b611d

Please sign in to comment.