From: Sam Reed Date: Sat, 25 Sep 2010 17:01:17 +0000 (+0000) Subject: extract is weird X-Git-Tag: 1.31.0-rc.0~34795 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=f1999bef699701cb0080240116b36c5dbb6ca023;p=lhc%2Fweb%2Fwiklou.git extract is weird Do what extract is doing explicitally --- 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';