Changed order of report list.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 28 Oct 2008 22:17:46 +0000 (22:17 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 28 Oct 2008 22:17:46 +0000 (22:17 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrreport@297 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport.body.php

index 86330f1df2c03a89cc92891a6f9701587830afea..dbe485f21aa286d79d49680e91b51a4cfff38983 100644 (file)
@@ -176,7 +176,7 @@ function wrReportTableRender($page_title = NULL) {
        $dbr = wfGetDB(DB_SLAVE);
        $conditions = array();
        if ($page_title) $conditions['page_title'] = $page_title;
-       $res = $dbr->select('wrreport', array('id', 'page_title', 'date_report', 'date_entry', 'date_invalid', 'condition', 'description', 'author_name', 'author_username'), $conditions, $fname = 'Database::select', $options = array('ORDER BY' => 'date_report, date_entry'));
+       $res = $dbr->select('wrreport', array('id', 'page_title', 'date_report', 'date_entry', 'date_invalid', 'condition', 'description', 'author_name', 'author_username'), $conditions, $fname = 'Database::select', $options = array('ORDER BY' => 'date_report desc, date_entry desc'));
        $admin = is_null($page_title);
        if ($res->numRows() > 0) {
                $out .= "<table class=\"wrreporttable\">\n";