From a20ef706fd6e7011a0dc95df71222b9a5871e3b3 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 6 Apr 2016 05:44:40 -0700 Subject: issue #340 --- include/nav.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'include/nav.php') diff --git a/include/nav.php b/include/nav.php index e8c1a2e92..541ab3aed 100644 --- a/include/nav.php +++ b/include/nav.php @@ -151,15 +151,7 @@ EOT; if(! get_config('system','hide_help')) { require_once('mod/help.php'); - $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); - } - if (! $context_help ) { - $context_help = ''; - } + $context_help = load_context_help(); $nav['help'] = array($help_url, t('Help'), "", t('Help and documentation'),'help_nav_btn',$context_help); } -- cgit v1.2.3