aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/plugin.php')
-rw-r--r--include/plugin.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/plugin.php b/include/plugin.php
index c5039692a..46a659ddc 100644
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -484,8 +484,11 @@ function theme_include($file) {
'view/$file'
);
- $parent = get_app()->theme_info['extends'];
- if(! $parent)
+ $theme_info = get_app()->theme_info;
+
+ if(array_key_exists('extends',$theme_info))
+ $parent = $theme_info['extends'];
+ else
$parent = 'NOPATH';
foreach($paths as $p) {