mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Hardcoded project name in include_by_locale()
include_by_locale() should not use hardcoded default project name 'mysite' (fixes #7969).
This commit is contained in:
parent
683f388d1c
commit
55b611d99d
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user