extract is weird
Do what extract is doing explicitally
This commit is contained in:
parent
75f35e9b55
commit
f1999bef69
1 changed files with 4 additions and 2 deletions
|
|
@ -63,13 +63,15 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase {
|
|||
);
|
||||
|
||||
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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue