diff options
Diffstat (limited to 'include/comanche.php')
-rw-r--r-- | include/comanche.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/comanche.php b/include/comanche.php index 57056ae2a..9585a6578 100644 --- a/include/comanche.php +++ b/include/comanche.php @@ -284,6 +284,11 @@ function comanche_widget($name, $text) { if(file_exists('widget/' . trim($name) . '.php')) require_once('widget/' . trim($name) . '.php'); + else { + $theme_widget = 'widget_' . trim($name) . '.php'; + if(theme_include($theme_widget)) + require_once(theme_include($theme_widget)); + } $func = 'widget_' . trim($name); if (function_exists($func)) |