aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQueryBacklinksprop.php
diff options
context:
space:
mode:
authorSiebrand Mazeland <siebrand@kitano.nl>2016-03-08 08:03:49 +0100
committerSiebrand Mazeland <siebrand@kitano.nl>2016-03-08 16:52:00 +0100
commit94afc567d67e3f49b1686cc445a3cff7ed92cf08 (patch)
tree73416ec4b3858d2849460c058f356865d626d12e /includes/api/ApiQueryBacklinksprop.php
parentadaf3d221fba17d7fe9dc71ca73800a5f144adaa (diff)
downloadmediawikicore-94afc567d67e3f49b1686cc445a3cff7ed92cf08.tar.gz
mediawikicore-94afc567d67e3f49b1686cc445a3cff7ed92cf08.zip
Remove unused local variables in API
Change-Id: Ia94ae232308ad47ee88dbd30675cfcbdb6b371ed
Diffstat (limited to 'includes/api/ApiQueryBacklinksprop.php')
-rw-r--r--includes/api/ApiQueryBacklinksprop.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/includes/api/ApiQueryBacklinksprop.php b/includes/api/ApiQueryBacklinksprop.php
index 17b51da43208..5b55332e1193 100644
--- a/includes/api/ApiQueryBacklinksprop.php
+++ b/includes/api/ApiQueryBacklinksprop.php
@@ -164,22 +164,14 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase {
$this->dieContinueUsageIf( count( $cont ) != count( $sortby ) );
$where = '';
$i = count( $sortby ) - 1;
- $cont_ns = 0;
- $cont_title = '';
foreach ( array_reverse( $sortby, true ) as $field => $type ) {
$v = $cont[$i];
switch ( $type ) {
case 'ns':
- $cont_ns = (int)$v;
- /* fall through */
case 'int':
$v = (int)$v;
$this->dieContinueUsageIf( $v != $cont[$i] );
break;
-
- case 'title':
- $cont_title = $v;
- /* fall through */
default:
$v = $db->addQuotes( $v );
break;