summaryrefslogtreecommitdiff
path: root/admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin.php')
-rw-r--r--admin.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/admin.php b/admin.php
index f8176d9c6..1c9b0b26f 100644
--- a/admin.php
+++ b/admin.php
@@ -3,7 +3,9 @@
include_once "includes/common.inc";
function status($message) {
- if ($message) return "<B>Status:</B> $message<HR>\n";
+ if ($message) {
+ return "<B>Status:</B> $message<HR>\n";
+ }
}
function admin_page($mod) {
@@ -29,12 +31,16 @@ function admin_page($mod) {
$links[] = "<a href=\"index.php\">home</a>";
foreach (module_list() as $name) {
- if (module_hook($name, "link")) $links = array_merge($links, module_invoke($name, "link", "admin"));
+ if (module_hook($name, "link")) {
+ $links = array_merge($links, module_invoke($name, "link", "admin"));
+ }
}
print implode(" | ", $links) ."<hr />";
- if ($mod) module_invoke($mod, "admin");
+ if ($mod) {
+ module_invoke($mod, "admin");
+ }
?>
</body>
</html>