From f6b2d6438f1bb0df5fcc9159a38d47628466f80a Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Fri, 20 Jun 2008 19:32:17 +0200 Subject: issue125, make initial sort-order configureable Signed-off-by: Andreas Unterkircher --- phpfspot.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'phpfspot.class.php') 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'] = ''; -- cgit v1.2.3-18-g5258