You cant call ucwords(strtolower(...)) on the plugin name because NestedSet will become Nestedset (lower s)
This commit is contained in:
parent
8ba35b6e2b
commit
4210452812
@ -268,9 +268,9 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access
|
||||
if (class_exists($tpl, true)) {
|
||||
$tpl = new $tpl($options);
|
||||
} else {
|
||||
$className = 'Doctrine_Template_' . ucwords(strtolower($tpl));
|
||||
$className = 'Doctrine_Template_' . $tpl;
|
||||
|
||||
if ( ! class_exists($className, true)) {
|
||||
if ( ! class_exists($className, true)) {
|
||||
throw new Doctrine_Record_Exception("Couldn't load plugin.");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user