diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:32:59 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:32:59 -0400 |
commit | 6dc1997577fab2c366781fd7048144935afa0012 (patch) | |
tree | 8918d28c7ab4342f0738985e37af1dfc42d0e93a /includes/libs/ReplacementArray.php | |
parent | 150f94f051128f367bc89f6b7e5f57eb2a69fc62 (diff) | |
parent | fa89acd685cb09cdbe1c64cbb721ec64975bbbc1 (diff) |
Merge commit 'fa89acd'
# Conflicts:
# .gitignore
# extensions/ArchInterWiki.sql
Diffstat (limited to 'includes/libs/ReplacementArray.php')
-rw-r--r-- | includes/libs/ReplacementArray.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/includes/libs/ReplacementArray.php b/includes/libs/ReplacementArray.php index 7fdb3093..b6faa378 100644 --- a/includes/libs/ReplacementArray.php +++ b/includes/libs/ReplacementArray.php @@ -76,7 +76,7 @@ class ReplacementArray { * @param array $data */ public function mergeArray( $data ) { - $this->data = array_merge( $this->data, $data ); + $this->data = $data + $this->data; $this->fss = false; } @@ -84,7 +84,7 @@ class ReplacementArray { * @param ReplacementArray $other */ public function merge( ReplacementArray $other ) { - $this->data = array_merge( $this->data, $other->data ); + $this->data = $other->data + $this->data; $this->fss = false; } @@ -111,7 +111,10 @@ class ReplacementArray { * @return string */ public function replace( $subject ) { - if ( function_exists( 'fss_prep_replace' ) ) { + if ( + function_exists( 'fss_prep_replace' ) && + version_compare( PHP_VERSION, '5.5.0' ) < 0 + ) { if ( $this->fss === false ) { $this->fss = fss_prep_replace( $this->data ); } |