This commit is contained in:
redmatrix
2016-04-06 05:44:40 -07:00
parent adad8f2ebc
commit a20ef706fd
2 changed files with 15 additions and 9 deletions

View File

@@ -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);
}