Quellcode durchsuchen

@todo is this really needed? => apparently no

Signed-off-by: emanuele <[email protected]>
emanuele vor 12 Jahren
Ursprung
Commit
57de7ca2c0
3 geänderte Dateien mit 6 neuen und 12 gelöschten Zeilen
  1. 2 4
      Sources/ManageAttachments.php
  2. 2 4
      Sources/ManageBoards.php
  3. 2 4
      Sources/ManageNews.php

+ 2 - 4
Sources/ManageAttachments.php

@@ -227,9 +227,7 @@ function ManageAvatarSettings($return_config = false)
 	if ($return_config)
 		return $config_vars;
 
-	// We need these files for the inline permission settings, and the settings template.
-	// @todo is this really needed?
-	require_once($sourcedir . '/ManagePermissions.php');
+	// We need this file for the settings template.
 	require_once($sourcedir . '/ManageServer.php');
 
 	// Saving avatar settings?
@@ -2041,4 +2039,4 @@ function attachDirStatus($dir, $expected_files)
 		return array('ok', false, $dir_size);
 }
 
-?>
+?>

+ 2 - 4
Sources/ManageBoards.php

@@ -808,9 +808,7 @@ function EditBoardSettings($return_config = false)
 	if ($return_config)
 		return $config_vars;
 
-	// Needed for the settings template and inline permission functions.
-	// @todo is this file really needed?
-	require_once($sourcedir . '/ManagePermissions.php');
+	// Needed for the settings template.
 	require_once($sourcedir . '/ManageServer.php');
 
 	// Don't let guests have these permissions.
@@ -849,4 +847,4 @@ function EditBoardSettings($return_config = false)
 	prepareDBSettingContext($config_vars);
 }
 
-?>
+?>

+ 2 - 4
Sources/ManageNews.php

@@ -1049,9 +1049,7 @@ function ModifyNewsSettings($return_config = false)
 	$context['page_title'] = $txt['admin_edit_news'] . ' - ' . $txt['settings'];
 	$context['sub_template'] = 'show_settings';
 
-	// Needed for the inline permission functions, and the settings template.
-	// @todo is this really needed?
-	require_once($sourcedir . '/ManagePermissions.php');
+	// Needed for the settings template.
 	require_once($sourcedir . '/ManageServer.php');
 
 	// Wrap it all up nice and warm...
@@ -1081,4 +1079,4 @@ function ModifyNewsSettings($return_config = false)
 	prepareDBSettingContext($config_vars);
 }
 
-?>
+?>