Added a Smarty Load event so that plugins can register once Smarty Loads
This commit is contained in:
parent
a01967f205
commit
1e5ec4297a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue