r111941 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111940‎ | r111941 | r111942 >
Date:17:26, 20 February 2012
Author:yaron
Status:resolved (Comments)
Tags:
Comment:
Added default 'link text' value if link points to Special:RunQuery, using new #queryformlink parser function
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_Utils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_Utils.php
@@ -894,6 +894,9 @@
895895 // Set defaults.
896896 $inFormName = $inLinkStr = $inLinkType = $inTooltip =
897897 $inQueryStr = $inTargetName = '';
 898+ if ( $specialPageName = 'RunQuery' ) {
 899+ $inLinkStr = wfMsg( 'runquery' );
 900+ }
898901 $classStr = "";
899902 $inQueryArr = array();
900903

Follow-up revisions

RevisionCommit summaryAuthorDate
r111957bugfix (accidental assignment)foxtrott19:56, 20 February 2012

Comments

#Comment by Nikerabbit (talk | contribs)   07:46, 21 February 2012

You probably want ===, not =.

Status & tagging log