extract is weird
authorSam Reed <reedy@users.mediawiki.org>
Sat, 25 Sep 2010 17:01:17 +0000 (17:01 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sat, 25 Sep 2010 17:01:17 +0000 (17:01 +0000)
Do what extract is doing explicitally

includes/api/ApiQueryBacklinks.php

index 7c1db33..5e6a283 100644 (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';