diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-07-19 21:08:34 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-07-19 21:08:34 -0700 |
commit | 15b6e8faa489d6634d7a67c88572325237fbb749 (patch) | |
tree | 729e27ec0ccd424fcd252b17c2a9ade9c725eca3 /index.php | |
parent | fd8e6f313088f124cdd80387e1a1c7887f0c7300 (diff) | |
parent | 736db4992b37e4e54d85e5734157e62c6500c431 (diff) | |
download | volse-hubzilla-15b6e8faa489d6634d7a67c88572325237fbb749.tar.gz volse-hubzilla-15b6e8faa489d6634d7a67c88572325237fbb749.tar.bz2 volse-hubzilla-15b6e8faa489d6634d7a67c88572325237fbb749.zip |
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts:
include/identity.php
include/widgets.php
util/messages.po
view/it/messages.po
view/it/strings.php
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -195,6 +195,17 @@ if(strlen($a->module)) { } } + /** + * This provides a place for plugins to register module handlers which don't otherwise exist on the system. + * If the plugin sets 'installed' to true we won't throw a 404 error for the specified module even if + * there is no specific module file or matching plugin name. + * The plugin should catch at least one of the module hooks for this URL. + */ + + $x = array('module' => $a->module, 'installed' => false); + call_hooks('module_loaded', $x); + if($x['installed']) + $a->module_loaded = true; /** * The URL provided does not resolve to a valid module. |