diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2008-06-20 19:32:17 +0200 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2008-06-20 19:41:54 +0200 |
commit | f6b2d6438f1bb0df5fcc9159a38d47628466f80a (patch) | |
tree | 94104008d68bfbe92e6c53525302d553e2b032e2 /phpfspot.class.php | |
parent | 3d5877ab7f5b9cf885b74bbb881115050f8d5ed8 (diff) |
issue125, make initial sort-order configureable
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r-- | phpfspot.class.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php index ae58790..4bc3266 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -227,8 +227,9 @@ class PHPFSPOT { if(!isset($_SESSION['tag_condition'])) $_SESSION['tag_condition'] = 'or'; + /* if sort-order has not been set yet, get the one specified in the config */ if(!isset($_SESSION['sort_order'])) - $_SESSION['sort_order'] = 'date_desc'; + $_SESSION['sort_order'] = $this->cfg->sort_order; if(!isset($_SESSION['searchfor_tag'])) $_SESSION['searchfor_tag'] = ''; |