Paladox has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/263181

Change subject: Add 'array' to merge strategy
......................................................................

Add 'array' to merge strategy

This will allow us to merge an array.

For example you could do

"EX": [
"E",
"J"
],
"_merge_strategy": "array"

Change-Id: Ia3430508587290ad3a1120578cd95496bc8ef244
---
M includes/registration/ExtensionRegistry.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/81/263181/1

diff --git a/includes/registration/ExtensionRegistry.php 
b/includes/registration/ExtensionRegistry.php
index 86be86b..9c42135 100644
--- a/includes/registration/ExtensionRegistry.php
+++ b/includes/registration/ExtensionRegistry.php
@@ -265,6 +265,9 @@
                                case 'array_plus':
                                        $GLOBALS[$key] += $val;
                                        break;
+                               case 'array':
+                                       $GLOBALS[$key] = $val;
+                                       break;
                                case 'array_merge':
                                        $GLOBALS[$key] = array_merge( $val, 
$GLOBALS[$key] );
                                        break;

-- 
To view, visit https://gerrit.wikimedia.org/r/263181
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia3430508587290ad3a1120578cd95496bc8ef244
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Paladox <thomasmulhall...@yahoo.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to