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

@@ -21,7 +21,7 @@ class Model_Host_Server extends ORM_OSB {
* Return the object of the product plugin
*/
public function plugin($type='') {
$c = sprintf('Host_Plugin_%s',ucfirst(strtolower($this->provision_plugin)));
$c = Kohana::classname('Host_Plugin_'.$this->provision_plugin);
if (! $this->provision_plugin OR ! class_exists($c))
return NULL;