summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-05-25 03:51:00 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-05-25 03:51:00 +0000
commit09354344e078cbc2b64a4f7ba97a2871db18ec41 (patch)
tree2af2ffd97d324e546b42ce4c97a2b5197c92852d /modules
parenta52bb9b1dd1134808910690f21f551892faec490 (diff)
downloadbrdo-09354344e078cbc2b64a4f7ba97a2871db18ec41.tar.gz
brdo-09354344e078cbc2b64a4f7ba97a2871db18ec41.tar.bz2
- Sort admin-content by descending node date. This got lost in the refinement-filter patch.
Diffstat (limited to 'modules')
-rw-r--r--modules/node.module2
-rw-r--r--modules/node/node.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module
index 5b01a2159..d41c0862b 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -909,7 +909,7 @@ function node_admin_nodes() {
$join .= $filters[$key]['join'];
}
$where = count($where) ? 'WHERE '. implode(' AND ', $where) : '';
- $result = pager_query('SELECT n.*, u.name, u.uid FROM {node} n '. $join .' INNER JOIN {users} u ON n.uid = u.uid '. $where, 50, 0, NULL, $args);
+ $result = pager_query('SELECT n.*, u.name, u.uid FROM {node} n '. $join .' INNER JOIN {users} u ON n.uid = u.uid '. $where .' ORDER BY n.changed DESC', 50, 0, NULL, $args);
// Make sure the update controls are disabled if we don't have any rows to select from.
$disabled = !db_num_rows($result);
diff --git a/modules/node/node.module b/modules/node/node.module
index 5b01a2159..d41c0862b 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -909,7 +909,7 @@ function node_admin_nodes() {
$join .= $filters[$key]['join'];
}
$where = count($where) ? 'WHERE '. implode(' AND ', $where) : '';
- $result = pager_query('SELECT n.*, u.name, u.uid FROM {node} n '. $join .' INNER JOIN {users} u ON n.uid = u.uid '. $where, 50, 0, NULL, $args);
+ $result = pager_query('SELECT n.*, u.name, u.uid FROM {node} n '. $join .' INNER JOIN {users} u ON n.uid = u.uid '. $where .' ORDER BY n.changed DESC', 50, 0, NULL, $args);
// Make sure the update controls are disabled if we don't have any rows to select from.
$disabled = !db_num_rows($result);