diff options
author | Friendika <info@friendika.com> | 2011-02-19 00:56:15 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-19 00:56:15 -0800 |
commit | 642a71ffdee21b02e5fbee2602a3b6a2e3fe54b8 (patch) | |
tree | 5b95ce5e30d79a5bb257ce917c7cd28d6d047e59 /index.php | |
parent | 0bf8e418a8b8c57607ed8a52cff6b3ac53d38d05 (diff) | |
download | volse-hubzilla-642a71ffdee21b02e5fbee2602a3b6a2e3fe54b8.tar.gz volse-hubzilla-642a71ffdee21b02e5fbee2602a3b6a2e3fe54b8.tar.bz2 volse-hubzilla-642a71ffdee21b02e5fbee2602a3b6a2e3fe54b8.zip |
app menu - and a demo application 'tictac'
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -113,6 +113,13 @@ else check_config($a); +$arr = array('app_menu' => $a->apps); + +call_hooks('app_menu', $arr); + +$a->apps = $arr['app_menu']; + + /** * * We have already parsed the server path into $->argc and $a->argv @@ -132,10 +139,9 @@ else * further processing. */ - if(strlen($a->module)) { 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"); + include_once("addon/{$a->module}/{$a->module}.php"); if(function_exists($a->module . '_module')) $a->module_loaded = true; } @@ -155,6 +161,8 @@ if(strlen($a->module)) { } } + + /* initialise content region */ if(! x($a->page,'content')) |