From: Fomafix Date: Fri, 30 Aug 2019 19:10:30 +0000 (+0200) Subject: API: Remove unused asignment to $titleProvided in ApiExpandTemplates X-Git-Tag: 1.34.0-rc.0~335 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=0477318014b53624c0a2d928adda5309867bdc39;p=lhc%2Fweb%2Fwiklou.git API: Remove unused asignment to $titleProvided in ApiExpandTemplates The variable $titleProvided is not used in the following code. Change-Id: I879ecfb589616882ba7193943f843f9226277f3e --- 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; } }