From 0477318014b53624c0a2d928adda5309867bdc39 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Fri, 30 Aug 2019 21:10:30 +0200 Subject: [PATCH] API: Remove unused asignment to $titleProvided in ApiExpandTemplates The variable $titleProvided is not used in the following code. Change-Id: I879ecfb589616882ba7193943f843f9226277f3e --- includes/api/ApiExpandTemplates.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/includes/api/ApiExpandTemplates.php b/includes/api/ApiExpandTemplates.php index a5e7437108..4b74a3d4d9 100644 --- a/includes/api/ApiExpandTemplates.php +++ b/includes/api/ApiExpandTemplates.php @@ -76,10 +76,6 @@ class ApiExpandTemplates extends ApiBase { $this->addWarning( [ 'apierror-revwrongpage', $rev->getId(), wfEscapeWikiText( $pTitleObj->getPrefixedText() ) ] ); } - } else { - // Consider the title derived from the revid as having - // been provided. - $titleProvided = true; } } -- 2.20.1