<?php
-
+error_reporting(E_ERROR | E_WARNING | E_PARSE);
/**
*
* Friendika
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
* 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;
}
}
}
+
+
/* initialise content region */
if(! x($a->page,'content'))
*
*/
-if($a->module != 'install')
+if($a->module != 'install') {
require_once('nav.php');
+ nav($a);
+}
/**
* Build the page - now that we have all the components