From 0bddbaf6f19b9cc187770a9e0542821c11d1a5e7 Mon Sep 17 00:00:00 2001 From: Sotaro KARASAWA Date: Sun, 15 Nov 2009 01:29:14 +0900 Subject: [PATCH] fixed: ClassFactory's name resolution --- class/ClassFactory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/class/ClassFactory.php b/class/ClassFactory.php index 75b558d..b871fb7 100644 --- a/class/ClassFactory.php +++ b/class/ClassFactory.php @@ -377,7 +377,8 @@ class Ethna_ClassFactory } // try ethna master style - // Ethna_Foo_Bar -> class/Ethna/Foo/Ethna_Foo_Bar.php + // Ethna_Foo_Bar -> class/Ethna/Foo/Bar.php + $tmp = explode('_', $match[2]); array_unshift($tmp, 'Ethna', 'class'); $file = sprintf('%s.%s', implode(DIRECTORY_SEPARATOR, $tmp), -- 2.11.0