https://www.mediawiki.org/wiki/Special:Code/MediaWiki/107757
Revision: 107757
Author: reedy
Date: 2011-12-31 23:00:12 +0000 (Sat, 31 Dec 2011)
Log Message:
-----------
Add LoadExtensionSchemaUpdates hook subscription
'cos devs are lazy
Modified Paths:
--------------
trunk/extensions/ServerAdminLog/ServerAdminLog.php
Modified: trunk/extensions/ServerAdminLog/ServerAdminLog.php
===================================================================
--- trunk/extensions/ServerAdminLog/ServerAdminLog.php 2011-12-31 22:54:41 UTC
(rev 107756)
+++ trunk/extensions/ServerAdminLog/ServerAdminLog.php 2011-12-31 23:00:12 UTC
(rev 107757)
@@ -49,4 +49,15 @@
/*
* API Stuff
*/
-$wgAPIModules['serveradminlogentry'] = 'ApiServerAdminLogEntry';
\ No newline at end of file
+$wgAPIModules['serveradminlogentry'] = 'ApiServerAdminLogEntry';
+
+$wgHooks['LoadExtensionSchemaUpdates'][] = 'efServerAdminLogSchemaUpdates';
+
+/**
+ * @param $updater DatabaseUpdater
+ * @return bool
+ */
+function efServerAdminLogSchemaUpdates( $updater ) {
+ $base = dirname( __FILE__ );
+ $updater->addExtensionTable( 'sal_channel', "$base/tables.sql" );
+}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs