http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73755
Revision: 73755
Author: reedy
Date: 2010-09-25 17:01:17 +0000 (Sat, 25 Sep 2010)
Log Message:
-----------
extract is weird
Do what extract is doing explicitally
Modified Paths:
--------------
trunk/phase3/includes/api/ApiQueryBacklinks.php
Modified: trunk/phase3/includes/api/ApiQueryBacklinks.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryBacklinks.php 2010-09-25 16:58:32 UTC
(rev 73754)
+++ trunk/phase3/includes/api/ApiQueryBacklinks.php 2010-09-25 17:01:17 UTC
(rev 73755)
@@ -63,13 +63,15 @@
);
public function __construct( $query, $moduleName ) {
- extract( $this->backlinksSettings[$moduleName] );
+ $settings = $this->backlinksSettings[$moduleName];
+ $prefix = $settings['prefix'];
+ $code = $settings['code'];
$this->resultArr = array();
parent::__construct( $query, $moduleName, $code );
$this->bl_ns = $prefix . '_namespace';
$this->bl_from = $prefix . '_from';
- $this->bl_table = $linktbl;
+ $this->bl_table = $settings['linktbl'];
$this->bl_code = $code;
$this->hasNS = $moduleName !== 'imageusage';
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs