jenkins-bot has submitted this change and it was merged.
Change subject: Removed unnecessary blank line in Special:Export page
......................................................................
Removed unnecessary blank line in Special:Export page
Bug: T103870
Change-Id: I5b314ef9204ca33d851a9fe88477d0be427e5199
---
M includes/specials/SpecialExport.php
1 file changed, 4 insertions(+), 1 deletion(-)
Approvals:
TTO: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/specials/SpecialExport.php
b/includes/specials/SpecialExport.php
index 642ea69..91fef03 100644
--- a/includes/specials/SpecialExport.php
+++ b/includes/specials/SpecialExport.php
@@ -65,7 +65,10 @@
*/
$catpages =
$this->getPagesFromCategory( $t );
if ( $catpages ) {
- $page .= "\n" . implode( "\n",
$catpages );
+ if ( $page !== '' ) {
+ $page .= "\n";
+ }
+ $page .= implode( "\n",
$catpages );
}
}
}
--
To view, visit https://gerrit.wikimedia.org/r/257870
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5b314ef9204ca33d851a9fe88477d0be427e5199
Gerrit-PatchSet: 14
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: PranavK <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Revi <[email protected]>
Gerrit-Reviewer: TTO <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits