extract is weird

Do what extract is doing explicitally
This commit is contained in:
Sam Reed 2010-09-25 17:01:17 +00:00
parent 75f35e9b55
commit f1999bef69

View file

@ -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';