From: Kevin Israel Date: Fri, 14 Nov 2014 22:27:16 +0000 (-0500) Subject: generateLocalAutoload.php: Abort for web requests X-Git-Tag: 1.31.0-rc.0~13292^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=0a68289a8f726d06c775cda5745d5c213ab4468a;p=lhc%2Fweb%2Fwiklou.git generateLocalAutoload.php: Abort for web requests The Maintenance class already does this, though this script does not use it for the obvious reason that when there is a missing or incorrect autoloader entry, it may not be possible to initialize MediaWiki. Hence it is necessary to do that explicitly in this script. Overwriting autoload.php potentially could disrupt the operation of a production wiki (the file is truncated when it is opened). Change-Id: I05d5d4b7c30c4643e71ca5819783627688e15da7 --- diff --git a/maintenance/generateLocalAutoload.php b/maintenance/generateLocalAutoload.php index 78e66b7efa..5e4cac6fe3 100644 --- a/maintenance/generateLocalAutoload.php +++ b/maintenance/generateLocalAutoload.php @@ -1,5 +1,9 @@