From ceed0f7a1b6d7ee713c23937a9449bd84324caf6 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 29 Oct 2017 19:52:00 -0700 Subject: allow plugin class widgets, fix sql error in page module --- Zotlabs/Render/Comanche.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Zotlabs/Render/Comanche.php') diff --git a/Zotlabs/Render/Comanche.php b/Zotlabs/Render/Comanche.php index 8831bd117..78ca870a7 100644 --- a/Zotlabs/Render/Comanche.php +++ b/Zotlabs/Render/Comanche.php @@ -469,8 +469,11 @@ class Comanche { if(file_exists('Zotlabs/SiteWidget/' . $clsname . '.php')) require_once('Zotlabs/SiteWidget/' . $clsname . '.php'); + elseif(file_exists('widget/' . $clsname . '/' . $clsname . '.php')) + require_once('widget/' . $clsname . '/' . $clsname . '.php'); elseif(file_exists('Zotlabs/Widget/' . $clsname . '.php')) require_once('Zotlabs/Widget/' . $clsname . '.php'); + if(class_exists($nsname)) { $x = new $nsname; $f = 'widget'; -- cgit v1.2.3