provide theme_init() functions
This commit is contained in:
parent
3afc9915e3
commit
741a5dba57
9 changed files with 20 additions and 0 deletions
|
@ -258,6 +258,11 @@ if($a->module_loaded) {
|
|||
$func($a);
|
||||
}
|
||||
|
||||
if(function_exists(str_replace('-','_',current_theme()) . '_init')) {
|
||||
$func = str_replace('-','_',current_theme()) . '_init';
|
||||
$func($a);
|
||||
}
|
||||
|
||||
if(($_SERVER['REQUEST_METHOD'] === 'POST') && (! $a->error)
|
||||
&& (function_exists($a->module . '_post'))
|
||||
&& (! x($_POST,'auth-params'))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue