mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Fixed i18nTextCollector when used with i18nEntityProvider - class manifest is now stored lowercase, which means i18n::get_owner_module() didnt work reliably (from r104995)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112421 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
267bec9520
commit
0a261fd479
@ -1656,6 +1656,7 @@ class i18n extends Object {
|
|||||||
else {
|
else {
|
||||||
global $_CLASS_MANIFEST;
|
global $_CLASS_MANIFEST;
|
||||||
if(strpos($name,'_') !== false) $name = strtok($name,'_');
|
if(strpos($name,'_') !== false) $name = strtok($name,'_');
|
||||||
|
$name = strtolower($name); // Necessary because of r101131
|
||||||
if(isset($_CLASS_MANIFEST[$name])) {
|
if(isset($_CLASS_MANIFEST[$name])) {
|
||||||
$path = str_replace('\\','/',Director::makeRelative($_CLASS_MANIFEST[$name]));
|
$path = str_replace('\\','/',Director::makeRelative($_CLASS_MANIFEST[$name]));
|
||||||
ereg('/([^/]+)/', $path, $module);
|
ereg('/([^/]+)/', $path, $module);
|
||||||
|
Loading…
Reference in New Issue
Block a user