mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Merge "Use $wgExtensionDirectory instead of hardcoding $IP/extensions"
This commit is contained in:
commit
1fdf7d0a4f
|
@ -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