r24240 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24239‎ | r24240 | r24241 >
Date:15:49, 18 July 2007
Author:brion
Status:old
Tags:
Comment:
support updater extensions to install the table
Modified paths:
  • /trunk/extensions/AntiSpoof/AntiSpoof.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AntiSpoof/AntiSpoof.php
@@ -27,6 +27,8 @@
2828
2929 $wgExtensionFunctions[] = 'asSetup';
3030
 31+$wgHooks['LoadExtensionSchemaUpdates'][] = 'asUpdateSchema';
 32+
3133 function asSetup() {
3234 $base = dirname( __FILE__ );
3335
@@ -45,6 +47,14 @@
4648 }
4749 }
4850
 51+function asUpdateSchema() {
 52+ global $wgExtNewTables;
 53+ $wgExtNewTables[] = array(
 54+ 'spoofuser',
 55+ dirname( __FILE__ ) . '/mysql/patch-antispoof.sql' );
 56+ return true;
 57+}
 58+
4959 /**
5060 * Hook for user creation form submissions.
5161 * @param User $u

Status & tagging log