From 1e0e812440b8b87c39a88692e39eb0baca736b6e Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 12 May 2015 18:11:54 -0700 Subject: [PATCH] provide a method for loading site/custom widgets --- include/comanche.php | 3 +++ 1 file changed, 3 insertions(+) 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);