Merge "Special:PageLanguage: Show log extract only when title known"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 23 May 2015 20:57:19 +0000 (20:57 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 23 May 2015 20:57:19 +0000 (20:57 +0000)
includes/specials/SpecialPageLanguage.php

index 79b2444..9476819 100644 (file)
@@ -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() {