1
1
Fork 0

provide theme_init() functions

This commit is contained in:
friendica 2012-04-08 05:52:00 -07:00
commit 741a5dba57
9 changed files with 20 additions and 0 deletions

View file

@ -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'))) {