diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-15 17:05:16 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-03-29 11:47:07 +0200 |
commit | 242ef70a775a86050152c0aea9096ec1cd6d0312 (patch) | |
tree | 3c04a4c062c05e764fcefb1bab5cce5f12216b67 /Zotlabs | |
parent | 755b75161494ea9810ab0e38242cb1a318793ed3 (diff) | |
download | volse-hubzilla-242ef70a775a86050152c0aea9096ec1cd6d0312.tar.gz volse-hubzilla-242ef70a775a86050152c0aea9096ec1cd6d0312.tar.bz2 volse-hubzilla-242ef70a775a86050152c0aea9096ec1cd6d0312.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')) |