diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-05-12 18:11:54 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-05-12 18:11:54 -0700 |
commit | 1e0e812440b8b87c39a88692e39eb0baca736b6e (patch) | |
tree | 58a8aba6626f5b9b733578901a98a9197c333c28 /include/comanche.php | |
parent | 19706705965ffa40799f1e2ca6c061f00eff74b6 (diff) | |
download | volse-hubzilla-1e0e812440b8b87c39a88692e39eb0baca736b6e.tar.gz volse-hubzilla-1e0e812440b8b87c39a88692e39eb0baca736b6e.tar.bz2 volse-hubzilla-1e0e812440b8b87c39a88692e39eb0baca736b6e.zip |
provide a method for loading site/custom widgets
Diffstat (limited to 'include/comanche.php')
-rw-r--r-- | include/comanche.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/comanche.php b/include/comanche.php index f385f3c5a..3030ae5c6 100644 --- a/include/comanche.php +++ b/include/comanche.php @@ -245,6 +245,9 @@ function comanche_widget($name, $text) { } } + if(file_exists('widget/' . trim($name) . '.php')) + require_once('widget/' . trim($name) . '.php'); + $func = 'widget_' . trim($name); if (function_exists($func)) return $func($vars); |