jenkins-bot has submitted this change and it was merged.
Change subject: SmartList: Allow variables/parserfunctions as args
......................................................................
SmartList: Allow variables/parserfunctions as args
One can now use parser variables like {{PAGENAME}} or parser functions
within the tags arguments
Change-Id: I6758856b7a7732fd7e2c662a4d726be8fc10bfda
---
M SmartList/SmartList.class.php
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
Mglaser: Looks good to me, approved
Tweichart: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/SmartList/SmartList.class.php b/SmartList/SmartList.class.php
index 871a526..3bd9203 100644
--- a/SmartList/SmartList.class.php
+++ b/SmartList/SmartList.class.php
@@ -543,6 +543,10 @@
*/
public function onTagSmartList( $sInput, $aArgs, $oParser ) {
$oParser->disableCache();
+ foreach( $aArgs as $sArg => $sVal ) {
+ //Allow Magic Words (Variables) and Parser Functions as
arguments
+ $aArgs[$sArg] = $oParser->recursivePreprocess( $sVal );
+ }
//Get arguments
$aArgs['count'] = BsCore::sanitizeArrayEntry( $aArgs, 'count',
5, BsPARAMTYPE::INT );
--
To view, visit https://gerrit.wikimedia.org/r/203055
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6758856b7a7732fd7e2c662a4d726be8fc10bfda
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Robert Vogel <[email protected]>
Gerrit-Reviewer: Mglaser <[email protected]>
Gerrit-Reviewer: Pigpen <[email protected]>
Gerrit-Reviewer: Tweichart <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits