Commit cb2d27c7 authored by Dries's avatar Dries

- Patch by Ax. Fixed some syntax errors:

    -    case t("whatever");
    +    case t("whatever"):
parent 45276202
...@@ -12,11 +12,11 @@ function db_connect($url) { ...@@ -12,11 +12,11 @@ function db_connect($url) {
mysql_connect($url["host"], $url["user"], $url["pass"]) or die(mysql_error()); 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"); 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' ** 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 ** 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). ** high (eg. your database and webserver live on different machines).
*/ */
} }
......
...@@ -716,7 +716,7 @@ function book_admin() { ...@@ -716,7 +716,7 @@ function book_admin() {
case "orphan": case "orphan":
print book_admin_orphan(); print book_admin_orphan();
break; break;
case t("Save book pages"); case t("Save book pages"):
print status(book_admin_save(arg(3), $edit)); print status(book_admin_save(arg(3), $edit));
// fall through: // fall through:
default: default:
......
...@@ -716,7 +716,7 @@ function book_admin() { ...@@ -716,7 +716,7 @@ function book_admin() {
case "orphan": case "orphan":
print book_admin_orphan(); print book_admin_orphan();
break; break;
case t("Save book pages"); case t("Save book pages"):
print status(book_admin_save(arg(3), $edit)); print status(book_admin_save(arg(3), $edit));
// fall through: // fall through:
default: default:
......
...@@ -1055,7 +1055,7 @@ function user_page() { ...@@ -1055,7 +1055,7 @@ function user_page() {
} }
switch ($op) { switch ($op) {
case t("E-mail new password"); case t("E-mail new password"):
case "password": case "password":
theme("header"); theme("header");
theme("box", t("E-mail new password"), user_pass($edit)); theme("box", t("E-mail new password"), user_pass($edit));
...@@ -1081,7 +1081,7 @@ function user_page() { ...@@ -1081,7 +1081,7 @@ function user_page() {
theme("footer"); theme("footer");
break; break;
case t("Delete account"): case t("Delete account"):
case t("delete"); case t("delete"):
$output = user_delete(); $output = user_delete();
theme("header"); theme("header");
theme("box", t("User account"), user_menu()); theme("box", t("User account"), user_menu());
......
...@@ -1055,7 +1055,7 @@ function user_page() { ...@@ -1055,7 +1055,7 @@ function user_page() {
} }
switch ($op) { switch ($op) {
case t("E-mail new password"); case t("E-mail new password"):
case "password": case "password":
theme("header"); theme("header");
theme("box", t("E-mail new password"), user_pass($edit)); theme("box", t("E-mail new password"), user_pass($edit));
...@@ -1081,7 +1081,7 @@ function user_page() { ...@@ -1081,7 +1081,7 @@ function user_page() {
theme("footer"); theme("footer");
break; break;
case t("Delete account"): case t("Delete account"):
case t("delete"); case t("delete"):
$output = user_delete(); $output = user_delete();
theme("header"); theme("header");
theme("box", t("User account"), user_menu()); theme("box", t("User account"), user_menu());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment