r25173 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25172‎ | r25173 | r25174 >
Date:21:30, 26 August 2007
Author:yaron
Status:old
Tags:
Comment:
Fixed 'require_once' bug, changed extension credit to be of type
'specialpage' and 'parserhook'
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php
@@ -5,12 +5,14 @@
66 * @author Yaron Koren
77 */
88
9 -define('SF_VERSION','0.5.4');
 9+define('SF_VERSION','0.5.5');
1010
1111 $wgExtensionFunctions[] = 'sfgSetupExtension';
1212 $wgExtensionFunctions[] = 'sfgParserFunctions';
1313 $wgHooks['LanguageGetMagic'][] = 'sfgLanguageGetMagic';
1414
 15+require_once($sfgIP . '/includes/SF_ParserFunctions.php');
 16+
1517 /**
1618 * Do the actual intialisation of the extension. This is just a delayed init that makes sure
1719 * MediaWiki is set up properly before we add our stuff.
@@ -38,12 +40,11 @@
3941 /**********************************************/
4042
4143 require_once($sfgIP . '/includes/SF_FormEditTab.php');
42 - require_once($sfgIP . '/includes/SF_ParserFunctions.php');
4344
4445 /**********************************************/
4546 /***** credits (see "Special:Version") *****/
4647 /**********************************************/
47 - $wgExtensionCredits['parserhook'][]= array('name'=>'Semantic Forms', 'version'=>SF_VERSION, 'author'=>'Yaron Koren and others',
 48+ $wgExtensionCredits['specialpage'][]= array('name'=>'Semantic Forms', 'version'=>SF_VERSION, 'author'=>'Yaron Koren and others',
4849 'url'=>'http://discoursedb.org/SemanticForms/', 'description' => 'Forms for adding and editing semantic data');
4950
5051 return true;
@@ -54,7 +55,7 @@
5556 /**********************************************/
5657
5758 /**
58 - * Init the additional namepsaces used by Semantic MediaWiki. The
 59+ * Init the additional namespaces used by Semantic Forms. The
5960 * parameter denotes the least unused even namespace ID that is
6061 * greater or equal to 100.
6162 */

Status & tagging log