From: PranavK Date: Thu, 10 Dec 2015 11:47:07 +0000 (+0530) Subject: Removed unnecessary blank line in Special:Export page X-Git-Tag: 1.31.0-rc.0~8742 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=15b9bdae33c9e38d46e0dacc2bfe92bbe7faaa66;p=lhc%2Fweb%2Fwiklou.git Removed unnecessary blank line in Special:Export page Bug: T103870 Change-Id: I5b314ef9204ca33d851a9fe88477d0be427e5199 --- diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index 642ea6944a..91fef033b7 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -65,7 +65,10 @@ class SpecialExport extends SpecialPage { */ $catpages = $this->getPagesFromCategory( $t ); if ( $catpages ) { - $page .= "\n" . implode( "\n", $catpages ); + if ( $page !== '' ) { + $page .= "\n"; + } + $page .= implode( "\n", $catpages ); } } }