Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F6811
SF_arraymaptemplate_hashing.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 11:07 PM
2014-11-21 23:07:29 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
SF_arraymaptemplate_hashing.patch
View Options
--- includes/SF_ParserFunctions.php (revision 63924)
+++ includes/SF_ParserFunctions.php (working copy)
@@ -431,9 +431,13 @@
foreach ( $values_array as $old_value ) {
$old_value = trim( $old_value );
if ( $old_value == '' ) continue;
+ $bracketed_value = $frame->virtualBracketedImplode( '{{', '|', '}}',
+ $template, '1=' . $old_value );
+ if ($bracketed_value instanceof PPNode_Hash_Array) {
+ $bracketed_value = $bracketed_value->value;
+ }
$results_array[] = $parser->replaceVariables(
- implode( '', $frame->virtualBracketedImplode( '{{', '|', '}}',
- $template, '1=' . $old_value ) ), $frame );
+ implode( '', $bracketed_value ), $frame );
}
return implode( $new_delimiter, $results_array );
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6349
Default Alt Text
SF_arraymaptemplate_hashing.patch (1 KB)
Attached To
Mode
T24861: Modification to renderArrayMapTemplateObj function
Attached
Detach File
Event Timeline
Log In to Comment