mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:55:19 +00:00
provide a method for loading site/custom widgets
This commit is contained in:
parent
1970670596
commit
1e0e812440
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue