From: Siebrand Mazeland Date: Sat, 2 Oct 2010 22:42:44 +0000 (+0000) Subject: Remove comments related to no longer existent and relevant compatibility function... X-Git-Tag: 1.31.0-rc.0~34662 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=d9b6455f71d1d0d82998cc6db0b1cfd86ee76579;p=lhc%2Fweb%2Fwiklou.git Remove comments related to no longer existent and relevant compatibility function for array_diff_key(). --- diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index 4892ff02bb..c80c07d1ab 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -351,8 +351,6 @@ class LinksUpdate { function getLinkInsertions( $existing = array() ) { $arr = array(); foreach( $this->mLinks as $ns => $dbkeys ) { - # array_diff_key() was introduced in PHP 5.1, there is a compatibility function - # in GlobalFunctions.php $diffs = isset( $existing[$ns] ) ? array_diff_key( $dbkeys, $existing[$ns] ) : $dbkeys; foreach ( $diffs as $dbk => $id ) { $arr[] = array( @@ -515,8 +513,6 @@ class LinksUpdate { function getInterwikiInsertions( $existing = array() ) { $arr = array(); foreach( $this->mInterwikis as $prefix => $dbkeys ) { - # array_diff_key() was introduced in PHP 5.1, there is a compatibility function - # in GlobalFunctions.php $diffs = isset( $existing[$prefix] ) ? array_diff_key( $dbkeys, $existing[$prefix] ) : $dbkeys; foreach ( $diffs as $dbk => $id ) { $arr[] = array( @@ -529,8 +525,6 @@ class LinksUpdate { return $arr; } - - /** * Given an array of existing links, returns those links which are not in $this * and thus should be deleted.