瀏覽代碼

Merge pull request #555 from jdarwood007/moderation-menu-fix

 Push the moderation menu fix again
Michael Eshom 11 年之前
父節點
當前提交
f56de09f2d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/Admin.php

+ 1 - 1
Sources/Admin.php

@@ -127,7 +127,7 @@ function AdminMain()
 					'subsections' => array(
 						'general' => array($txt['mods_cat_security_general']),
 						'spam' => array($txt['antispam_title']),
-						'moderation' => array($txt['moderation_settings_short'], 'enabled' => substr($modSettings['warning_settings'], 0, 1) == 1),
+						'moderation' => array($txt['moderation_settings_short'], 'enabled' => in_array('w', $context['admin_features'])),
 					),
 				),
 				'languages' => array(