mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +00:00
dList v2.2.5 beta
- Tested and fixed bugs on PHP 5.x. Only remaining problem is that short tags is disabled by default in PHP 5.x. As of this moment dList templates use <? ?> style tags for simplicity. - Other minor changes which i don't remember. git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@23 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
@@ -84,7 +84,7 @@ class Path {
|
||||
class Sort {
|
||||
|
||||
//>Section> sort.get_url
|
||||
function get_url ($sortby) {
|
||||
function get_url ($sortby, $desc=false) {
|
||||
global $config;
|
||||
$return = array();
|
||||
$current_sort = ( empty($_REQUEST['sort']) ) ? $config->default_sort : $_REQUEST['sort'] ;
|
||||
@@ -97,6 +97,7 @@ class Sort {
|
||||
} else {
|
||||
if ($sortby != $config->default_sort) {
|
||||
$return[] = 'sort='.$sortby;
|
||||
if ( $desc == true ) $return[] = 'order=desc';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user