summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-05-02 20:44:14 +0000
committerDries Buytaert <dries@buytaert.net>2003-05-02 20:44:14 +0000
commit54459cc01a126a921f2ee7bec1939764c75501a4 (patch)
tree56a271b258b6240808763144473e0e31217f47ef
parent8a95b9b87e8ecef9795c75342ce94e360caa556c (diff)
downloadbrdo-54459cc01a126a921f2ee7bec1939764c75501a4.tar.gz
brdo-54459cc01a126a921f2ee7bec1939764c75501a4.tar.bz2
- 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.
-rw-r--r--modules/node.module4
-rw-r--r--modules/node/node.module4
-rw-r--r--modules/user.module6
-rw-r--r--modules/user/user.module6
4 files changed, 10 insertions, 10 deletions
diff --git a/modules/node.module b/modules/node.module
index f45f17002..5c0c884ca 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -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.
diff --git a/modules/node/node.module b/modules/node/node.module
index f45f17002..5c0c884ca 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -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.
diff --git a/modules/user.module b/modules/user.module
index 860c64f28..9d6241e8b 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -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.");
}
diff --git a/modules/user/user.module b/modules/user/user.module
index 860c64f28..9d6241e8b 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -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.");
}