public $version;
public $description;
public $handle;
+ public $email;
public $error = NULL;
function __construct($handle)
else
{
- require_once "plugins/$handle/$handle.php";
+ require_once UPATH."/plugins/$handle/$handle.php";
if (!class_exists($handle))
$this->error = "Class \"$handle\" doesn't exist";
$this->error = "Plugin version not defined";
elseif (!isset($plugin->description))
$this->error = "Plugin description not defined";
+ elseif (!isset($plugin->email))
+ $this->error = "Plugin email not defined";
else
{
$this->handle = $handle;
$this->author = $plugin->author;
$this->version = $plugin->version;
$this->description = $plugin->description;
+ $this->email = $plugin->email;
}
}
}