mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
fixed i18n::get_owner_module() calls on classes with _s
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@49141 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1bf544c264
commit
4c8e1b8b39
@ -937,6 +937,7 @@ class i18n extends Controller {
|
||||
ereg('/([^/]+)/',$path,$module);
|
||||
} else {
|
||||
global $_CLASS_MANIFEST;
|
||||
if(strpos($name,'_') !== false) $name = strtok($name,'_');
|
||||
$path = str_replace('\\','/',Director::makeRelative($_CLASS_MANIFEST[$name]));
|
||||
ereg('/([^/]+)/', $path, $module);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user