summaryrefslogtreecommitdiff
path: root/modules/locale/locale.module
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-05 00:26:36 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-05 00:26:36 +0000
commitcd430165d706c6a747f81e663f756e60a4a0377f (patch)
tree88915ae0fe216462d071760a005489e9838fff77 /modules/locale/locale.module
parent6839ce965fb7ac37bf735a0b169009cca7529429 (diff)
downloadbrdo-cd430165d706c6a747f81e663f756e60a4a0377f.tar.gz
brdo-cd430165d706c6a747f81e663f756e60a4a0377f.tar.bz2
#73884 by RobRoy, various code cleanup.
Diffstat (limited to 'modules/locale/locale.module')
-rw-r--r--modules/locale/locale.module3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index 0226f083f..8f36b87e1 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -54,10 +54,9 @@ function locale_help($section) {
*/
function locale_menu($may_cache) {
$items = array();
+ $access = user_access('administer locales');
if ($may_cache) {
- $access = user_access('administer locales');
-
// Main admin menu item
$items[] = array('path' => 'admin/settings/locale',
'title' => t('localization'),