diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-06-30 09:50:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-06-30 09:50:36 +0000 |
commit | e6a67118ebfe21dcc7646676f808d1f4b2fc3a83 (patch) | |
tree | 8da776874e78d6daab8466c0b27be83008462b85 /modules/statistics.module | |
parent | 7c1b20fe49310c9dc36b837e56277f4cc62534fd (diff) | |
download | brdo-e6a67118ebfe21dcc7646676f808d1f4b2fc3a83.tar.gz brdo-e6a67118ebfe21dcc7646676f808d1f4b2fc3a83.tar.bz2 |
- Made search.php a module, being search.module.
- Updated the permission names to be more consistent.
- Small improvement to node.php.
Diffstat (limited to 'modules/statistics.module')
-rw-r--r-- | modules/statistics.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/statistics.module b/modules/statistics.module index 02fc75de1..32a7b9fb6 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -11,11 +11,11 @@ function statistics_cron() { } function statistics_perm() { - return array("access statistics"); + return array("administer statistics"); } function statistics_link($type) { - if ($type == "admin" && user_access("access statistics")) { + if ($type == "admin" && user_access("administer statistics")) { $links[] = "<a href=\"admin.php?mod=statistics\">statistics</a>"; } @@ -57,7 +57,7 @@ function statistics_referer() { function statistics_admin() { global $user; - if (user_access($user, "access statistics")) { + if (user_access($user, "administer statistics")) { print statistics_referer(); } } |