From 4c8e1b8b395eced6106e3d797722ebb3368ba182 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 6 Feb 2008 23:06:02 +0000 Subject: [PATCH] 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 --- core/i18n.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/i18n.php b/core/i18n.php index 879f7e299..adcb3339f 100755 --- a/core/i18n.php +++ b/core/i18n.php @@ -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); }