Pārlūkot izejas kodu

Push the moderation menu fix again

Signed-off-by: Jeremy D <[email protected]>
Jeremy D 11 gadi atpakaļ
vecāks
revīzija
0f7d2ff5c6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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(