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:
f1480ba
)
DifferenceEngine: use a fake title when there's no real title
author
Gergő Tisza
<tgr.huwiki@gmail.com>
Wed, 22 Aug 2018 08:22:54 +0000
(10:22 +0200)
committer
Gergő Tisza
<tgr.huwiki@gmail.com>
Thu, 23 Aug 2018 14:23:05 +0000
(16:23 +0200)
Bug: T202454
Change-Id: I9ee90acc833de93b5fa2579b5debc9637c9e9c5b
includes/diff/DifferenceEngine.php
patch
|
blob
|
history
diff --git
a/includes/diff/DifferenceEngine.php
b/includes/diff/DifferenceEngine.php
index
2ceda21
..
67968fb
100644
(file)
--- a/
includes/diff/DifferenceEngine.php
+++ b/
includes/diff/DifferenceEngine.php
@@
-279,6
+279,11
@@
class DifferenceEngine extends ContextSource {
return $slots;
}
+ public function getTitle() {
+ // T202454 avoid errors when there is no title
+ return parent::getTitle() ?: Title::makeTitle( NS_SPECIAL, 'BadTitle/DifferenceEngine' );
+ }
+
/**
* Set reduced line numbers mode.
* When set, line X is not displayed when X is 1, for example to increase readability and