Fixes as a result of KH 3.3

This commit is contained in:
Deon George
2013-01-10 22:25:19 +11:00
parent 79bdd4ce51
commit f08215717c
8 changed files with 11 additions and 14 deletions

View File

@@ -56,7 +56,7 @@ class Model_Service extends ORM_OSB {
if (! is_numeric($this->product->prod_plugin_data))
throw new Kohana_Exception('Missing plugin_id for :product (:type)',array(':product'=>$this->product->id,':type'=>$this->product->prod_plugin_file));
$o = ORM::factory(sprintf('Service_Plugin_%s',$this->product->prod_plugin_file),array('service_id'=>$this->id));
$o = ORM::factory(sprintf('Service_Plugin_%s',ucwords(strtolower($this->product->prod_plugin_file))),array('service_id'=>$this->id));
return $type ? $o->$type : $o;
}