diff --git a/lib/Doctrine/Record/Abstract.php b/lib/Doctrine/Record/Abstract.php index 90fa70a25..a94ad4736 100644 --- a/lib/Doctrine/Record/Abstract.php +++ b/lib/Doctrine/Record/Abstract.php @@ -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."); }