Nikerabbit has uploaded a new change for review.
https://gerrit.wikimedia.org/r/67637
Change subject: Avoid backwards ordering on first export of json files
......................................................................
Avoid backwards ordering on first export of json files
Bug: 42613
Change-Id: Ifb69ed845ab0b00ea70d6f4d4ad37ec4aa7d075a
---
M ffs/JsonFFS.php
1 file changed, 7 insertions(+), 7 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate
refs/changes/37/67637/1
diff --git a/ffs/JsonFFS.php b/ffs/JsonFFS.php
index 240a41d..174e5a9 100644
--- a/ffs/JsonFFS.php
+++ b/ffs/JsonFFS.php
@@ -70,6 +70,13 @@
$messages['@metadata'] = $template['METADATA'];
}
+ $authors = $collection->getAuthors();
+ $authors = $this->filterAuthors( $authors, $collection->code );
+
+ if ( $authors !== array() ) {
+ $messages['@metadata']['authors'] = $authors;
+ }
+
$mangler = $this->group->getMangler();
/**
@@ -87,13 +94,6 @@
$key = $mangler->unmangle( $key );
$messages[$key] = $value;
- }
-
- $authors = $collection->getAuthors();
- $authors = $this->filterAuthors( $authors, $collection->code );
-
- if ( $authors !== array() ) {
- $messages['@metadata']['authors'] = $authors;
}
// Do not create empty files
--
To view, visit https://gerrit.wikimedia.org/r/67637
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifb69ed845ab0b00ea70d6f4d4ad37ec4aa7d075a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits