Skip to content

Commit

Permalink
Update document.php
Browse files Browse the repository at this point in the history
add 2 hidden options for set a default field sort and a default order on a document page
  • Loading branch information
iouston committed Oct 14, 2019
1 parent 0cd451e commit 83b4f41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions htdocs/contact/document.php
Expand Up @@ -62,6 +62,10 @@
$offset = $conf->liste_limit * $page;
$pageprev = $page - 1;
$pagenext = $page + 1;

if (isset($conf->global->MAIN_DOC_SORT_FIELD)){$sortfield=$conf->global->MAIN_DOC_SORT_FIELD;}
if (isset($conf->global->MAIN_DOC_SORT_ORDER)){$sortorder=$conf->global->MAIN_DOC_SORT_ORDER;}

if (! $sortorder) $sortorder="ASC";
if (! $sortfield) $sortfield="name";

Expand Down

0 comments on commit 83b4f41

Please sign in to comment.