Fix class naming calls
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user