diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-15 17:05:16 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-03-15 17:05:16 -0700 |
commit | 14f16a7ef0ce1412fcccdabf6a44dd83efee9c60 (patch) | |
tree | 40aacf6d0d1704ab0659d75870534b96fb5ecd49 /Zotlabs | |
parent | df6c07aaadda2e89d2843bae136f813c909637ba (diff) | |
download | volse-hubzilla-14f16a7ef0ce1412fcccdabf6a44dd83efee9c60.tar.gz volse-hubzilla-14f16a7ef0ce1412fcccdabf6a44dd83efee9c60.tar.bz2 volse-hubzilla-14f16a7ef0ce1412fcccdabf6a44dd83efee9c60.zip |
use absolute namespace
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Render/Comanche.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Render/Comanche.php b/Zotlabs/Render/Comanche.php index 899fbd8aa..60a7b232c 100644 --- a/Zotlabs/Render/Comanche.php +++ b/Zotlabs/Render/Comanche.php @@ -411,7 +411,8 @@ class Comanche { } $clsname = ucfirst($name); - $nsname = "Zotlabs\\Widget\\" . $clsname; + $nsname = "\\Zotlabs\\Widget\\" . $clsname; + if(file_exists('Zotlabs/SiteWidget/' . $clsname . '.php')) require_once('Zotlabs/SiteWidget/' . $clsname . '.php'); elseif(file_exists('Zotlabs/Widget/' . $clsname . '.php')) |