aboutsummaryrefslogtreecommitdiffstats
path: root/include/comanche.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-23 18:49:37 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-23 18:49:37 -0700
commit27fa908233640eed51072fe77e7a9658a331ba20 (patch)
tree030a7ab035d6b54e043413eff7088f95971d9429 /include/comanche.php
parent3ec6a431b62c20952f07f889acfeedd0ac456d04 (diff)
downloadvolse-hubzilla-27fa908233640eed51072fe77e7a9658a331ba20.tar.gz
volse-hubzilla-27fa908233640eed51072fe77e7a9658a331ba20.tar.bz2
volse-hubzilla-27fa908233640eed51072fe77e7a9658a331ba20.zip
patch to allow theme based widgets
Diffstat (limited to 'include/comanche.php')
-rw-r--r--include/comanche.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/comanche.php b/include/comanche.php
index cb46985eb..49b910bdb 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))