From 4210452812555eb7fcd0fe1a3c31b1fb9df357c7 Mon Sep 17 00:00:00 2001 From: njero Date: Thu, 9 Aug 2007 23:12:31 +0000 Subject: [PATCH] You cant call ucwords(strtolower(...)) on the plugin name because NestedSet will become Nestedset (lower s) --- lib/Doctrine/Record/Abstract.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."); }