- Fixed the function prototypes of the newly introduced theme_user_list(),
theme_node_list(), and theme_menu_list(). This will fix the excessive gap between lists and avoids generating empty <b></b> constructs.4.2.x
parent
8a95b9b87e
commit
54459cc01a
|
@ -37,8 +37,8 @@ function node_title_list($result, $title = NULL) {
|
|||
return theme("theme_node_list", $items, $title);
|
||||
}
|
||||
|
||||
function theme_node_list($items, $title) {
|
||||
return theme("theme_item_list",$items,$title);
|
||||
function theme_node_list($items, $title = NULL) {
|
||||
return theme("theme_item_list", $items, $title);
|
||||
}
|
||||
|
||||
// Update the 'last viewed' timestamp of the specified node for current user.
|
||||
|
|
|
@ -37,8 +37,8 @@ function node_title_list($result, $title = NULL) {
|
|||
return theme("theme_node_list", $items, $title);
|
||||
}
|
||||
|
||||
function theme_node_list($items, $title) {
|
||||
return theme("theme_item_list",$items,$title);
|
||||
function theme_node_list($items, $title = NULL) {
|
||||
return theme("theme_item_list", $items, $title);
|
||||
}
|
||||
|
||||
// Update the 'last viewed' timestamp of the specified node for current user.
|
||||
|
|
|
@ -379,11 +379,11 @@ function user_block($op = "list", $delta = 0) {
|
|||
}
|
||||
}
|
||||
|
||||
function theme_user_list($items, $title = '') {
|
||||
function theme_user_list($items, $title = NULL) {
|
||||
return theme("theme_item_list",$items, $title);
|
||||
}
|
||||
|
||||
function theme_menu_list($items, $title = '') {
|
||||
function theme_menu_list($items, $title = NULL) {
|
||||
return theme("theme_item_list",$items, $title);
|
||||
}
|
||||
|
||||
|
@ -874,7 +874,7 @@ function user_delete() {
|
|||
global $edit, $user;
|
||||
|
||||
if ($edit["confirm"]) {
|
||||
watchdog(user,"$user->name deactivated her own account.");
|
||||
watchdog("user","$user->name deactivated her own account.");
|
||||
db_query("UPDATE users SET mail = 'deleted', status = '0' WHERE uid = '%d'", $user->uid);
|
||||
$output .= t("Your account has been deactivated.");
|
||||
}
|
||||
|
|
|
@ -379,11 +379,11 @@ function user_block($op = "list", $delta = 0) {
|
|||
}
|
||||
}
|
||||
|
||||
function theme_user_list($items, $title = '') {
|
||||
function theme_user_list($items, $title = NULL) {
|
||||
return theme("theme_item_list",$items, $title);
|
||||
}
|
||||
|
||||
function theme_menu_list($items, $title = '') {
|
||||
function theme_menu_list($items, $title = NULL) {
|
||||
return theme("theme_item_list",$items, $title);
|
||||
}
|
||||
|
||||
|
@ -874,7 +874,7 @@ function user_delete() {
|
|||
global $edit, $user;
|
||||
|
||||
if ($edit["confirm"]) {
|
||||
watchdog(user,"$user->name deactivated her own account.");
|
||||
watchdog("user","$user->name deactivated her own account.");
|
||||
db_query("UPDATE users SET mail = 'deleted', status = '0' WHERE uid = '%d'", $user->uid);
|
||||
$output .= t("Your account has been deactivated.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue