dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4051e45
)
API: Remove unused asignment to $titleProvided in ApiExpandTemplates
author
Fomafix
<fomafix@googlemail.com>
Fri, 30 Aug 2019 19:10:30 +0000
(21:10 +0200)
committer
Krinkle
<krinklemail@gmail.com>
Sun, 8 Sep 2019 03:46:13 +0000
(
03:46
+0000)
The variable $titleProvided is not used in the following code.
Change-Id: I879ecfb589616882ba7193943f843f9226277f3e
includes/api/ApiExpandTemplates.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiExpandTemplates.php
b/includes/api/ApiExpandTemplates.php
index
a5e7437
..
4b74a3d
100644
(file)
--- 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;
}
}