aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-26 16:34:53 -0700
committerredmatrix <mike@macgirvin.com>2016-09-26 16:34:53 -0700
commit5716556766eb4e329f0c6c1bc899a7621cbcd5a5 (patch)
tree798b5c8ecd312a3119a7452a0041ef75421f0604 /include/widgets.php
parentcccffc77cd706710049f2d84021f84e25bea1f26 (diff)
downloadvolse-hubzilla-5716556766eb4e329f0c6c1bc899a7621cbcd5a5.tar.gz
volse-hubzilla-5716556766eb4e329f0c6c1bc899a7621cbcd5a5.tar.bz2
volse-hubzilla-5716556766eb4e329f0c6c1bc899a7621cbcd5a5.zip
allow a site to over-ride the help table-of-contents files
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/widgets.php b/include/widgets.php
index 9cd15dd59..2e1e58717 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -1504,7 +1504,9 @@ function widget_helpindex($arr) {
$o .= '<div class="widget">';
$o .= '<h3>' . t('Documentation') . '</h3>';
- $level_0 = get_help_content('toc');
+ $level_0 = get_help_content('sitetoc');
+ if(! $level_0)
+ $level_0 = get_help_content('toc');
$level_0 = preg_replace('/\<ul(.*?)\>/','<ul class="nav nav-pills nav-stacked">',$level_0);
@@ -1515,7 +1517,9 @@ function widget_helpindex($arr) {
$path = '';
for($x = 1; $x < argc(); $x ++) {
$path .= argv($x) . '/';
- $y = get_help_content($path . 'toc');
+ $y = get_help_content($path . 'sitetoc');
+ if(! $y)
+ $y = get_help_content($path . 'toc');
if($y)
$levels[] = preg_replace('/\<ul(.*?)\>/','<ul class="nav nav-pills nav-stacked">',$y);
}