From e637829bdd2c05e733665c99d8b0248cbae6db1e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <lahwaacz@archlinux.org>
Date: Mon, 4 Jul 2022 22:34:13 +0200
Subject: [PATCH] archwiki: remove obsolete settings from LocalSettings.php

- $wgScriptExtension was removed in MW 1.31
- $wgDBmysql5 was removed in MW 1.33
- $wgShowIPinHeader was removed in MW 1.27
- $wgUseETag was removed in MW 1.28
- $wgEnableWriteAPI was removed in MW 1.32
- $wgShowSQLErrors was removed in MW 1.37
---
 roles/archwiki/templates/LocalSettings.php.j2 | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/roles/archwiki/templates/LocalSettings.php.j2 b/roles/archwiki/templates/LocalSettings.php.j2
index 54887acb7..02c7e142f 100644
--- a/roles/archwiki/templates/LocalSettings.php.j2
+++ b/roles/archwiki/templates/LocalSettings.php.j2
@@ -48,7 +48,6 @@ $wgScriptPath = "";
 $wgArticlePath = "/title/$1";
 # $wgUsePathInfo is not necessary: https://github.com/wikimedia/mediawiki/blob/bb92c4d1acc029eed0f6848360dff5b2436695fc/includes/WebRequest.php#L151-L153
 #$wgUsePathInfo = true;
-$wgScriptExtension  = ".php";
 
 ## The relative URL path to the skins directory
 $wgStylePath        = "$wgScriptPath/skins";
@@ -98,9 +97,6 @@ $wgDBprefix         = "";
 # MySQL table options to use during installation or update
 $wgDBTableOptions   = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
 
-# Experimental charset support for MySQL 5.0.
-$wgDBmysql5 = false;
-
 
 ##
 ## Email settings
@@ -145,12 +141,10 @@ $wgMemCachedServers = [ "unix://{{ archwiki_memcached_socket }}" ];
 ## to make your wiki go slightly faster. The directory should not
 ## be publically accessible from the web.
 $wgCacheDirectory = "$IP/../cache/data";
-$wgShowIPinHeader = false;
 $wgEnableSidebarCache = true;
 $wgUseFileCache = true;
 $wgFileCacheDirectory = "$IP/../cache/html";
 $wgUseGzip = true;
-$wgUseETag = true;
 
 # CSS-based preferences supposedly cause about 20 times slower page loads
 # https://phabricator.wikimedia.org/rSVN63707
@@ -282,7 +276,6 @@ $wgGroupPermissions['sysop']['editprotected2'] = true;
 $wgGroupPermissions['cosysop']['editprotected2'] = true;
 $wgGroupPermissions['privileged']['editprotected2'] = true;
 
-$wgEnableWriteAPI = true;
 # disable user account creation via API
 $wgAPIModules['createaccount'] = 'ApiDisabled';
 # remove 'writeapi' right from users
@@ -448,5 +441,4 @@ wfLoadExtension( 'CodeEditor' );
 # temporary disable registration; reverted 2016-6-26 bluewind
 #$wgGroupPermissions['*']['createaccount'] = false;
 
-# $wgShowSQLErrors = true;
 # $wgReadOnly = 'Database migration in progress. We`ll be back in a few minutes.';
-- 
GitLab