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:
jim
2006-05-20 15:06:54 +00:00
parent 5eed76a17d
commit 5576f99ff6
7 changed files with 23 additions and 16 deletions

View File

@@ -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';
}
}