Fix class naming calls

This commit is contained in:
Deon George
2013-03-23 07:37:04 +11:00
parent f2816dd902
commit 9d4b2f50ff
11 changed files with 10 additions and 10 deletions

View File

@@ -50,7 +50,7 @@ class Service_Traffic_Adsl {
* @return HeadImage
*/
public static function instance($supplier) {
$sc = sprintf('%s_%s',get_called_class(),ucwords(strtolower($supplier)));
$sc = Kohana::classname(get_called_class().'_'.$supplier);
if (! class_exists($sc))
throw new Kohana_Exception('Class doesnt exist for :supplier',array(':supplier'=>$supplier));