From f1999bef699701cb0080240116b36c5dbb6ca023 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 25 Sep 2010 17:01:17 +0000 Subject: [PATCH] extract is weird Do what extract is doing explicitally --- includes/api/ApiQueryBacklinks.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index 7c1db336db..5e6a283bbb 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -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'; -- 2.20.1