mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +00:00
created a configuration object model, and other minor changes...
git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@6 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
@@ -18,7 +18,7 @@ class dirlist {
|
||||
|
||||
// Sorting
|
||||
var $sort_items = true;
|
||||
var $sort_reverse = false;
|
||||
var $reverse = false;
|
||||
|
||||
// Smart date formatting
|
||||
var $smartdate = '{date}, {time}';
|
||||
@@ -73,7 +73,7 @@ class dirlist {
|
||||
}
|
||||
}
|
||||
if ( $this->sort_items ) {
|
||||
( $this->sort_reverse ) ? krsort($this->list) : ksort($this->list) ;
|
||||
( $this->reverse ) ? krsort($this->list) : ksort($this->list) ;
|
||||
}
|
||||
return true;
|
||||
}else{ $this->error = true; return false; }
|
||||
|
||||
Reference in New Issue
Block a user