Commit 89cad349 authored by Dries's avatar Dries

- Added missing break statements. Patch by Chris. Fixes bug 4055.

parent f3c26069
......@@ -269,12 +269,15 @@ function statistics_admin() {
case t("Submit \"top nodes\" block changes"):
statistics_save_topnodes_block($edit);
$output .= status(t("saved 'top nodes' block changes."));
break;
case t("Submit \"who's online\" block changes"):
statistics_save_online_block($edit);
$output .= status(t("saved 'who's online' block changes."));
break;
case t("Submit \"top nodes\" page changes"):
statistics_save_userconfig($edit);
$output .= status(t("saved 'top nodes' page changes."));
break;
case "top nodes page":
$output .= statistics_admin_userpage_config(array(
"statistics_userpage_link" => variable_get("statistics_userpage_link", ""),
......@@ -306,8 +309,8 @@ function statistics_admin() {
"statistics_block_online_max_len" => variable_get("statistics_block_online_max_len", 15),
"statistics_block_online_max_cnt" => variable_get("statistics_block_online_max_cnt", 10)
));
break;
}
break;
default:
$output .= statistics_admin_topnodes();
}
......
......@@ -269,12 +269,15 @@ function statistics_admin() {
case t("Submit \"top nodes\" block changes"):
statistics_save_topnodes_block($edit);
$output .= status(t("saved 'top nodes' block changes."));
break;
case t("Submit \"who's online\" block changes"):
statistics_save_online_block($edit);
$output .= status(t("saved 'who's online' block changes."));
break;
case t("Submit \"top nodes\" page changes"):
statistics_save_userconfig($edit);
$output .= status(t("saved 'top nodes' page changes."));
break;
case "top nodes page":
$output .= statistics_admin_userpage_config(array(
"statistics_userpage_link" => variable_get("statistics_userpage_link", ""),
......@@ -306,8 +309,8 @@ function statistics_admin() {
"statistics_block_online_max_len" => variable_get("statistics_block_online_max_len", 15),
"statistics_block_online_max_cnt" => variable_get("statistics_block_online_max_cnt", 10)
));
break;
}
break;
default:
$output .= statistics_admin_topnodes();
}
......
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