From 553f5179a24299e9ff0b11015e0dff798ca86306 Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Wed, 6 Aug 2008 22:38:22 +0200 Subject: [PATCH] Changed the default downloads sort order. The sort order is now the reverse upload time and the upload time is correctly used instead of the update time. --- src/IDF/Views/Download.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/IDF/Views/Download.php b/src/IDF/Views/Download.php index 29c4be9..ed5d800 100644 --- a/src/IDF/Views/Download.php +++ b/src/IDF/Views/Download.php @@ -54,12 +54,12 @@ class IDF_Views_Download 'file' => __('File'), array('summary', 'IDF_Views_Download_SummaryAndLabels', __('Summary')), array('filesize', 'IDF_Views_Download_Size', __('Size')), - array('modif_dtime', 'Pluf_Paginator_DateYMD', __('Uploaded')), + array('creation_dtime', 'Pluf_Paginator_DateYMD', __('Uploaded')), ); - $pag->configure($list_display, array(), array('file', 'filesize', 'modif_dtime')); + $pag->configure($list_display, array(), array('file', 'filesize', 'creation_dtime')); $pag->items_per_page = 10; $pag->no_results_text = __('No downloads were found.'); - $pag->sort_order = array('file', 'ASC'); + $pag->sort_order = array('creation_dtime', 'DESC'); $pag->setFromRequest($request); $tags = $prj->getTagCloud('downloads'); return Pluf_Shortcuts_RenderToResponse('downloads/index.html', @@ -218,12 +218,12 @@ class IDF_Views_Download 'file' => __('File'), array('summary', 'IDF_Views_Download_SummaryAndLabels', __('Summary')), array('filesize', 'IDF_Views_Download_Size', __('Size')), - array('modif_dtime', 'Pluf_Paginator_DateYMD', __('Uploaded')), + array('creation_dtime', 'Pluf_Paginator_DateYMD', __('Uploaded')), ); - $pag->configure($list_display, array(), array('file', 'filesize', 'modif_dtime')); + $pag->configure($list_display, array(), array('file', 'filesize', 'creation_dtime')); $pag->items_per_page = 10; $pag->no_results_text = __('No downloads were found.'); - $pag->sort_order = array('file', 'ASC'); + $pag->sort_order = array('creation_dtime', 'DESC'); $pag->setFromRequest($request); $tags = $prj->getTagCloud('downloads'); return Pluf_Shortcuts_RenderToResponse('downloads/index.html',