Yuvipanda has uploaded a new change for review.
https://gerrit.wikimedia.org/r/81161
Change subject: Do not skip fields that are not to be parsed
......................................................................
Do not skip fields that are not to be parsed
Change-Id: I45380ec4c0bb9d60a65b56e3376a97f9d49dc5d6
---
M includes/UploadWizardCampaign.php
1 file changed, 7 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard
refs/changes/61/81161/1
diff --git a/includes/UploadWizardCampaign.php
b/includes/UploadWizardCampaign.php
index 4be798a..108eaf0 100644
--- a/includes/UploadWizardCampaign.php
+++ b/includes/UploadWizardCampaign.php
@@ -110,7 +110,13 @@
$out = RequestContext::getMain()->getOutput();
$parsed = array();
foreach ( $array as $key => $value ) {
- if ( $forKeys === null || in_array( $key, $forKeys ) ) {
+ if ( $forKeys !== null ) {
+ if( in_array( $key, $forKeys ) ) {
+ $parsed[$key] = $out->parseInline(
$value );
+ } else {
+ $parsed[$key] = $value;
+ }
+ } else {
$parsed[$key] = $out->parseInline( $value );
}
}
--
To view, visit https://gerrit.wikimedia.org/r/81161
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I45380ec4c0bb9d60a65b56e3376a97f9d49dc5d6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits