From 55b611d99df27b90a0aa9e9c08356ebe1ff15e5e Mon Sep 17 00:00:00 2001 From: uniun Date: Fri, 14 Dec 2012 18:20:18 +0200 Subject: [PATCH] BUG Hardcoded project name in include_by_locale() include_by_locale() should not use hardcoded default project name 'mysite' (fixes #7969). --- i18n/i18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/i18n.php b/i18n/i18n.php index 98f1c6904..dd494b65e 100644 --- a/i18n/i18n.php +++ b/i18n/i18n.php @@ -1956,7 +1956,7 @@ class i18n extends Object implements TemplateGlobalProvider { // 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(