- Sort admin-content by descending node date. This got lost in the refinement-filter patch.

4.7.x
Steven Wittens 2005-05-25 03:51:00 +00:00
parent a52bb9b1dd
commit 09354344e0
2 changed files with 2 additions and 2 deletions

View File

@ -909,7 +909,7 @@ function node_admin_nodes() {
$join .= $filters[$key]['join']; $join .= $filters[$key]['join'];
} }
$where = count($where) ? 'WHERE '. implode(' AND ', $where) : ''; $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. // Make sure the update controls are disabled if we don't have any rows to select from.
$disabled = !db_num_rows($result); $disabled = !db_num_rows($result);

View File

@ -909,7 +909,7 @@ function node_admin_nodes() {
$join .= $filters[$key]['join']; $join .= $filters[$key]['join'];
} }
$where = count($where) ? 'WHERE '. implode(' AND ', $where) : ''; $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. // Make sure the update controls are disabled if we don't have any rows to select from.
$disabled = !db_num_rows($result); $disabled = !db_num_rows($result);