From: umherirrender Date: Sat, 23 May 2015 19:41:01 +0000 (+0200) Subject: Special:PageLanguage: Show log extract only when title known X-Git-Tag: 1.31.0-rc.0~11312^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=5d62d69421091c43f087cb7fe387692865c5355a;p=lhc%2Fweb%2Fwiklou.git Special:PageLanguage: Show log extract only when title known When open Special:PageLanguage without a page, the whole pagelang log is shown and the notice: Title::newFromText: $text must be a string. This will throw an InvalidArgumentException in future. [Called from LogPager::limitTitle] The whole log is useless at this position, so showing it only when looking at a specific page. Change-Id: I2a0b7ccc71789506554617e1d12797e72835a12a --- diff --git a/includes/specials/SpecialPageLanguage.php b/includes/specials/SpecialPageLanguage.php index 79b2444ea9..94768190f6 100644 --- a/includes/specials/SpecialPageLanguage.php +++ b/includes/specials/SpecialPageLanguage.php @@ -87,7 +87,10 @@ class SpecialPageLanguage extends FormSpecialPage { } protected function postText() { - return $this->showLogFragment( $this->par ); + if ( $this->par ) { + return $this->showLogFragment( $this->par ); + } + return ''; } protected function getDisplayFormat() {