diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-01-16 10:20:45 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-01-16 10:20:45 +0000 |
commit | 991ef5c1bfb73d17f67eb9024871cefbce969dca (patch) | |
tree | 7f0706ac565804aa342a62041c9701a45900d01e /src | |
parent | b009bdb07ca03099fb66305187fa2d557abd7814 (diff) | |
download | semanticscuttle-991ef5c1bfb73d17f67eb9024871cefbce969dca.tar.gz semanticscuttle-991ef5c1bfb73d17f67eb9024871cefbce969dca.tar.bz2 |
Part of request #2928950: Add config option to allow sorting by bookmark creation date instead of modification date
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@594 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src')
-rw-r--r-- | src/SemanticScuttle/Service/Bookmark.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php index d0aba0b..cb53cb1 100644 --- a/src/SemanticScuttle/Service/Bookmark.php +++ b/src/SemanticScuttle/Service/Bookmark.php @@ -693,7 +693,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService switch($sortOrder) { case 'date_asc': - $query_5 .= ' ORDER BY B.bModified ASC '; + $query_5 .= ' ORDER BY B.' . $GLOBALS['dateOrderField'] . ' ASC '; break; case 'title_desc': $query_5 .= ' ORDER BY B.bTitle DESC '; @@ -714,7 +714,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService $query_5 .= ' ORDER BY B.bAddress ASC '; break; default: - $query_5 .= ' ORDER BY B.bModified DESC '; + $query_5 .= ' ORDER BY B.' . $GLOBALS['dateOrderField'] . ' DESC '; } // Handle the parts of the query that depend on any tags that are present. |