Author: rande
Date: 2010-03-27 20:50:08 +0100 (Sat, 27 Mar 2010)
New Revision: 28830
Modified:
plugins/swZendMailPlugin/trunk/lib/swZendMailHelper.class.php
Log:
[swZendMailPlugin] use class_exists to load the class
Modified: plugins/swZendMailPlugin/trunk/lib/swZendMailHelper.class.php
===================================================================
--- plugins/swZendMailPlugin/trunk/lib/swZendMailHelper.class.php
2010-03-27 16:04:00 UTC (rev 28829)
+++ plugins/swZendMailPlugin/trunk/lib/swZendMailHelper.class.php
2010-03-27 19:50:08 UTC (rev 28830)
@@ -78,7 +78,7 @@
set_include_path(sfConfig::get('sf_lib_dir').'/vendor'.PATH_SEPARATOR.get_include_path());
}
- if(!sfAutoload::getInstance()->autoload('Zend_Loader'))
+ if(!class_exists('Zend_Loader'))
{
throw new LogicException('Please install Zend Framework Library inside :
'.sfConfig::get('sf_lib_dir').'/vendor');
}
@@ -179,9 +179,10 @@
$transport_settings = array($transport_settings);
}
- if(!sfAutoload::getInstance()->loadClass($transport_class))
+ if(!class_exists($transport_class))
{
- throw new LogicException('Please configure the mail swToolboxPlugin
settings');
+
+ throw new LogicException('Please configure the mail swToolboxPlugin
settings, unable to load transport class : '.$transport_class);
}
$reflection_class = new ReflectionClass($transport_class);
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.