Added a Smarty Load event so that plugins can register once Smarty Loads

This commit is contained in:
Abel Hoogeveen 2015-02-23 17:05:38 +01:00
parent a01967f205
commit 1e5ec4297a
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@ class Layout extends Bus {
private $Smarty = array();
private $title = "";
private $loaded = false;
public $loaded = false;
public function __construct(&$core) {
parent::__construct($core);
@ -25,6 +25,7 @@ class Layout extends Bus {
$this->Smarty['main'] = $this->getSmartyBasicVars($this->Smarty['main']);
$this->loaded = true;
$this->mods->events->fireEvent('smartyLoadEvent');
}
public function getSmartyBasicVars($Smarty) {