mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Use $wgExtensionDirectory instead of hardcoding $IP/extensions
Change-Id: Icf28a218d18df2ba90726f8b5a86621043138e48
This commit is contained in:
parent
e00909b3c3
commit
5a5844b840
|
@ -1679,15 +1679,13 @@ class AbuseFilterParser {
|
|||
static $replacementArray = null;
|
||||
|
||||
if ( is_null( $replacementArray ) ) {
|
||||
// @codingStandardsIgnoreStart Ignore global without wg prefix.
|
||||
global $IP;
|
||||
// @codingStandardsIgnoreEnd
|
||||
global $wgExtensionDirectory;
|
||||
|
||||
if ( is_readable( "$IP/extensions/AntiSpoof/equivset.php" ) ) {
|
||||
if ( is_readable( "$wgExtensionDirectory/AntiSpoof/equivset.php" ) ) {
|
||||
// Satisfy analyzer.
|
||||
$equivset = null;
|
||||
// Contains a map of characters in $equivset.
|
||||
require "$IP/extensions/AntiSpoof/equivset.php";
|
||||
require "$wgExtensionDirectory/AntiSpoof/equivset.php";
|
||||
|
||||
// strtr in ReplacementArray->replace() doesn't like this.
|
||||
if ( isset( $equivset[''] ) ) {
|
||||
|
|
Loading…
Reference in a new issue