Index: trunk/extensions/Notificator/Notificator.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | 'path' => __FILE__, // Magic so that svn revision number can be shown |
11 | 11 | 'name' => 'Notificator', |
12 | 12 | 'descriptionmsg' => 'notificator-desc', |
13 | | - 'version' => '1.0.2', |
| 13 | + 'version' => '1.1', |
14 | 14 | 'author' => 'Patrick Nagel', |
15 | 15 | 'url' => "http://www.mediawiki.org/wiki/Extension:Notificator", |
16 | 16 | ); |
— | — | @@ -31,9 +31,11 @@ |
32 | 32 | // Setting default here, to avoid register_globals vulnerabilites |
33 | 33 | $ngFromAddress = $wgPasswordSenderName . '<' . $wgPasswordSender . '>'; |
34 | 34 | |
35 | | -function notificator_AddDatabaseTable() { |
36 | | - global $wgExtNewTables; |
37 | | - $wgExtNewTables[] = array( 'notificator', dirname( __FILE__ ) . '/Notificator.sql' ); |
| 35 | +function notificator_AddDatabaseTable( $updater ) { |
| 36 | + $updater->addExtensionUpdate( array( 'addTable', 'notificator', |
| 37 | + dirname( __FILE__ ) . '/Notificator.sql', true ) ); |
| 38 | + $updater->addExtensionUpdate( array( 'modifyField', 'notificator', 'receiver_email', |
| 39 | + dirname( __FILE__ ) . '/Notificator.patch.sql', true ) ); |
38 | 40 | return true; |
39 | 41 | } |
40 | 42 | |