diff options
author | Friendika <info@friendika.com> | 2011-02-10 16:17:21 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-10 16:17:21 -0800 |
commit | f217a557b84129a9f2ad692069d40e7fe341cdc6 (patch) | |
tree | f2e8bec848dba6ea0e432a7d828d2c6230cdf480 /index.php | |
parent | 6da603fbb5ad5ff405ddcdf77a2ce587515d6e94 (diff) | |
download | volse-hubzilla-f217a557b84129a9f2ad692069d40e7fe341cdc6.tar.gz volse-hubzilla-f217a557b84129a9f2ad692069d40e7fe341cdc6.tar.bz2 volse-hubzilla-f217a557b84129a9f2ad692069d40e7fe341cdc6.zip |
allow plugins to become cmd modules
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -134,7 +134,12 @@ else if(strlen($a->module)) { - if(file_exists("mod/{$a->module}.php")) { + if(is_array($a->plugins) && in_array($a->module,$a->plugins) && file_exists("addon/{$a->module}/{$a->module}.php")) { + include("addon/{$a->module}/{$a->module}.php"); + if(function_exists($a->module . '_module')) + $a->module_loaded = true; + } + if((! $a->module_loaded) && (file_exists("mod/{$a->module}.php"))) { include("mod/{$a->module}.php"); $a->module_loaded = true; } |