provide a method for loading site/custom widgets

This commit is contained in:
redmatrix 2015-05-12 18:11:54 -07:00
parent 1970670596
commit 1e0e812440

View file

@ -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);