1
0
mirror of synced 2024-12-13 14:56:01 +03:00

You cant call ucwords(strtolower(...)) on the plugin name because NestedSet will become Nestedset (lower s)

This commit is contained in:
njero 2007-08-09 23:12:31 +00:00
parent 8ba35b6e2b
commit 4210452812

View File

@ -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.");
}