From bd29551f9aec4c463c02a3c57a5d6d94c9ee318d Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 5 Apr 2016 16:59:32 +0200 Subject: fix contextual help --- include/nav.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/nav.php') diff --git a/include/nav.php b/include/nav.php index 4bcef4425..e8c1a2e92 100644 --- a/include/nav.php +++ b/include/nav.php @@ -151,8 +151,8 @@ EOT; if(! get_config('system','hide_help')) { require_once('mod/help.php'); - $context_help = load_doc_file('doc/context/' . $a->cmd . '/help.html'); - $parentdir = dirname($a->cmd); + $context_help = load_doc_file('doc/context/' . App::$cmd . '/help.html'); + $parentdir = dirname(App::$cmd); while (! $context_help && $parentdir !== '.') { $context_help = load_doc_file('doc/context/' . $parentdir . '/help.html'); $parentdir = dirname($parentdir); @@ -266,7 +266,6 @@ $powered_by = ''; * */ function nav_set_selected($item){ - $a = get_app(); App::$nav_sel = array( 'community' => null, 'network' => null, -- cgit v1.2.3