aboutsummaryrefslogtreecommitdiffstats
path: root/include/help.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-24 22:24:45 -0700
committerzotlabs <mike@macgirvin.com>2017-05-24 22:24:45 -0700
commitdf8c69f73b54d33ba2bec7d227f6e6f948f4b451 (patch)
treee5196055e105ac5d20ba001db701c520cbb15a04 /include/help.php
parent3a00140797fa0d557db2434402ce20258b4ce570 (diff)
downloadvolse-hubzilla-df8c69f73b54d33ba2bec7d227f6e6f948f4b451.tar.gz
volse-hubzilla-df8c69f73b54d33ba2bec7d227f6e6f948f4b451.tar.bz2
volse-hubzilla-df8c69f73b54d33ba2bec7d227f6e6f948f4b451.zip
some minor help cleanup - add '-/foo' override of language detection
Diffstat (limited to 'include/help.php')
-rw-r--r--include/help.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/help.php b/include/help.php
index ab31e9400..4f9251b1b 100644
--- a/include/help.php
+++ b/include/help.php
@@ -116,9 +116,11 @@ function load_doc_file($s) {
$b = basename($s);
$d = dirname($s);
- $c = find_doc_file("$d/$lang/$b");
- if($c)
- return $c;
+ if($dirname !== '-') {
+ $c = find_doc_file("$d/$lang/$b");
+ if($c)
+ return $c;
+ }
$c = find_doc_file($s);
if($c)
return $c;
@@ -140,8 +142,8 @@ function find_doc_file($s) {
*/
function search_doc_files($s) {
- $itemspage = get_pconfig(local_channel(),'system','itemspage');
- \App::set_pager_itemspage(((intval($itemspage)) ? $itemspage : 20));
+
+ \App::set_pager_itemspage(60);
$pager_sql = sprintf(" LIMIT %d OFFSET %d ", intval(\App::$pager['itemspage']), intval(\App::$pager['start']));
$regexop = db_getfunc('REGEXP');
@@ -198,6 +200,7 @@ function doc_rank_sort($s1, $s2) {
*
* @return string
*/
+
function load_context_help() {
$path = App::$cmd;