From cb2d27c78dbac76d396d2c254e6aefa1154ad1e4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 4 Apr 2003 06:17:02 +0000 Subject: [PATCH] - Patch by Ax. Fixed some syntax errors: - case t("whatever"); + case t("whatever"): --- includes/database.mysql.inc | 6 +++--- modules/book.module | 2 +- modules/book/book.module | 2 +- modules/user.module | 4 ++-- modules/user/user.module | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/includes/database.mysql.inc b/includes/database.mysql.inc index 449622f112..3bae578fbe 100644 --- a/includes/database.mysql.inc +++ b/includes/database.mysql.inc @@ -12,11 +12,11 @@ function db_connect($url) { mysql_connect($url["host"], $url["user"], $url["pass"]) or die(mysql_error()); mysql_select_db(substr($url["path"], 1)) or die("unable to select database"); - /* + /* ** Note that you can change the 'mysql_connect' statement to 'mysql_pconnect' - ** if you want to use persistent connections. This is not recommended on + ** if you want to use persistent connections. This is not recommended on ** shared hosts, might require additional database/webserver tuning but - ** increases performance when the overhead to connect to your database is + ** increases performance when the overhead to connect to your database is ** high (eg. your database and webserver live on different machines). */ } diff --git a/modules/book.module b/modules/book.module index 2d13bd46c7..bee2643f09 100644 --- a/modules/book.module +++ b/modules/book.module @@ -716,7 +716,7 @@ function book_admin() { case "orphan": print book_admin_orphan(); break; - case t("Save book pages"); + case t("Save book pages"): print status(book_admin_save(arg(3), $edit)); // fall through: default: diff --git a/modules/book/book.module b/modules/book/book.module index 2d13bd46c7..bee2643f09 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -716,7 +716,7 @@ function book_admin() { case "orphan": print book_admin_orphan(); break; - case t("Save book pages"); + case t("Save book pages"): print status(book_admin_save(arg(3), $edit)); // fall through: default: diff --git a/modules/user.module b/modules/user.module index d6f61b431d..b8c3e5869a 100644 --- a/modules/user.module +++ b/modules/user.module @@ -1055,7 +1055,7 @@ function user_page() { } switch ($op) { - case t("E-mail new password"); + case t("E-mail new password"): case "password": theme("header"); theme("box", t("E-mail new password"), user_pass($edit)); @@ -1081,7 +1081,7 @@ function user_page() { theme("footer"); break; case t("Delete account"): - case t("delete"); + case t("delete"): $output = user_delete(); theme("header"); theme("box", t("User account"), user_menu()); diff --git a/modules/user/user.module b/modules/user/user.module index d6f61b431d..b8c3e5869a 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1055,7 +1055,7 @@ function user_page() { } switch ($op) { - case t("E-mail new password"); + case t("E-mail new password"): case "password": theme("header"); theme("box", t("E-mail new password"), user_pass($edit)); @@ -1081,7 +1081,7 @@ function user_page() { theme("footer"); break; case t("Delete account"): - case t("delete"); + case t("delete"): $output = user_delete(); theme("header"); theme("box", t("User account"), user_menu()); -- GitLab