http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94309
Revision: 94309
Author: mah
Date: 2011-08-12 00:13:48 +0000 (Fri, 12 Aug 2011)
Log Message:
-----------
w/s
Modified Paths:
--------------
branches/iwtransclusion/phase3v3/includes/LinksUpdate.php
Modified: branches/iwtransclusion/phase3v3/includes/LinksUpdate.php
===================================================================
--- branches/iwtransclusion/phase3v3/includes/LinksUpdate.php 2011-08-12
00:04:28 UTC (rev 94308)
+++ branches/iwtransclusion/phase3v3/includes/LinksUpdate.php 2011-08-12
00:13:48 UTC (rev 94309)
@@ -137,7 +137,7 @@
# External links
$existing = $this->getExistingExternals();
$this->incrTableUpdate( 'externallinks', 'el',
$this->getExternalDeletions( $existing ),
- $this->getExternalInsertions( $existing ) );
+ $this->getExternalInsertions( $existing ) );
# Language links
$existing = $this->getExistingInterlangs();
@@ -591,16 +591,16 @@
* @private
*/
function getInterlangInsertions( $existing = array() ) {
- $diffs = array_diff_assoc( $this->mInterlangs, $existing );
- $arr = array();
- foreach( $diffs as $lang => $title ) {
- $arr[] = array(
- 'll_from' => $this->mId,
- 'll_lang' => $lang,
- 'll_title' => $title
- );
- }
- return $arr;
+ $diffs = array_diff_assoc( $this->mInterlangs, $existing );
+ $arr = array();
+ foreach( $diffs as $lang => $title ) {
+ $arr[] = array(
+ 'll_from' => $this->mId,
+ 'll_lang' => $lang,
+ 'll_title' => $title
+ );
+ }
+ return $arr;
}
/**
@@ -730,7 +730,7 @@
* @private
*/
function getInterlangDeletions( $existing ) {
- return array_diff_assoc( $existing, $this->mInterlangs );
+ return array_diff_assoc( $existing, $this->mInterlangs );
}
/**
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs