r25177 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25176‎ | r25177 | r25178 >
Date:21:56, 26 August 2007
Author:yaron
Status:old
Tags:
Comment:
Wrong order in MagicWords declaration
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php
@@ -1,10 +1,10 @@
22 <?php
33 /**
44 * Parser functions for Semantic Forms.
5 - * Currently only one pareser function is defined: sf_forminput. It is
 5+ * Currently only one parser function is defined: forminput. It is
66 * called as:
77 *
8 - * {{#sf_forminput:form_name|size|value|button_text|query_string}}
 8+ * {{#forminput:form_name|size|value|button_text|query_string}}
99 *
1010 * This functions returns HTML representing a form to let the user enter the
1111 * name of a page to be added or edited using a Semantic Forms form. All
@@ -20,7 +20,7 @@
2121 * 'User' within a namespace also called 'User', and to have the form
2222 * preload with the page called 'UserStub', you could call the following:
2323 *
24 - * {{#sf_forminput:User|||Add or edit user|namespace=User&preload=UserStub}}
 24+ * {{#forminput:User|||Add or edit user|namespace=User&preload=UserStub}}
2525 *
2626 * @author Yaron Koren
2727 */
@@ -36,7 +36,7 @@
3737 default:
3838 $magicWords['forminput'] = array ( 0, 'forminput' );
3939 // for backward compatibility
40 - $magicWords['forminput'] = array ( 0, 'sf_forminput' );
 40+ $magicWords['sf_forminput'] = array ( 0, 'forminput' );
4141 }
4242 return true;
4343 }

Status & tagging log