Merge pull request #1939 from annando/issue-1938
Vier: Error when calling the admin settings of "vier" when "vier" is not activated
This commit is contained in:
commit
e1aa649703
2 changed files with 8 additions and 0 deletions
1
view/templates/theme_admin_settings.tpl
Normal file
1
view/templates/theme_admin_settings.tpl
Normal file
|
@ -0,0 +1 @@
|
|||
{{* Dummy file to avoid errors when installing themes *}}
|
|
@ -9,6 +9,9 @@ function theme_content(&$a){
|
|||
if(!local_user())
|
||||
return;
|
||||
|
||||
if (!function_exists('get_vier_config'))
|
||||
return;
|
||||
|
||||
$style = get_pconfig(local_user(), 'vier', 'style');
|
||||
|
||||
if ($style == "")
|
||||
|
@ -45,6 +48,10 @@ function theme_post(&$a){
|
|||
|
||||
|
||||
function theme_admin(&$a){
|
||||
|
||||
if (!function_exists('get_vier_config'))
|
||||
return;
|
||||
|
||||
$style = get_config('vier', 'style');
|
||||
|
||||
$helperlist = get_config('vier', 'helperlist');
|
||||
|
|
Loading…
Reference in a new issue