dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify OutputPage constructor
[lhc/web/wiklou.git]
/
includes
/
logging
/
LogFormatter.php
diff --git
a/includes/logging/LogFormatter.php
b/includes/logging/LogFormatter.php
index
2a47943
..
0f1e1f7
100644
(file)
--- a/
includes/logging/LogFormatter.php
+++ b/
includes/logging/LogFormatter.php
@@
-866,10
+866,12
@@
class LogFormatter {
case 'title':
case 'title-link':
$title = Title::newFromText( $value );
case 'title':
case 'title-link':
$title = Title::newFromText( $value );
- if ( $title ) {
- $value = [];
-
ApiQueryBase::addTitleInfo( $value, $title, "{$name}_"
);
+ if (
!
$title ) {
+ // Huh? Do something halfway sane.
+
$title = SpecialPage::getTitleFor( 'Badtitle', $value
);
}
}
+ $value = [];
+ ApiQueryBase::addTitleInfo( $value, $title, "{$name}_" );
return $value;
case 'user':
return $value;
case 'user':