some minor help cleanup - add '-/foo' override of language detection

This commit is contained in:
zotlabs 2017-05-24 22:24:45 -07:00
parent 3a00140797
commit df8c69f73b
2 changed files with 45 additions and 42 deletions

View File

@ -116,9 +116,11 @@ function load_doc_file($s) {
$b = basename($s); $b = basename($s);
$d = dirname($s); $d = dirname($s);
if($dirname !== '-') {
$c = find_doc_file("$d/$lang/$b"); $c = find_doc_file("$d/$lang/$b");
if($c) if($c)
return $c; return $c;
}
$c = find_doc_file($s); $c = find_doc_file($s);
if($c) if($c)
return $c; return $c;
@ -140,8 +142,8 @@ function find_doc_file($s) {
*/ */
function search_doc_files($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'])); $pager_sql = sprintf(" LIMIT %d OFFSET %d ", intval(\App::$pager['itemspage']), intval(\App::$pager['start']));
$regexop = db_getfunc('REGEXP'); $regexop = db_getfunc('REGEXP');
@ -198,6 +200,7 @@ function doc_rank_sort($s1, $s2) {
* *
* @return string * @return string
*/ */
function load_context_help() { function load_context_help() {
$path = App::$cmd; $path = App::$cmd;