OSDN Git Service

fixed: ClassFactory's name resolution
authorSotaro KARASAWA <sotaro.k@gmail.com>
Sat, 14 Nov 2009 16:29:14 +0000 (01:29 +0900)
committerSotaro KARASAWA <sotaro.k@gmail.com>
Sat, 14 Nov 2009 16:29:14 +0000 (01:29 +0900)
class/ClassFactory.php

index 75b558d..b871fb7 100644 (file)
@@ -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),