Index: trunk/extensions/WhosOnline/WhosOnline.php |
— | — | @@ -62,12 +62,9 @@ |
63 | 63 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'wfWhosOnlineCheckSchema'; |
64 | 64 | |
65 | 65 | function wfWhosOnlineCheckSchema() { |
66 | | - // Get a connection |
67 | | - $db = wfGetDB( DB_MASTER ); |
68 | | - // Create table if it doesn't exist |
69 | | - if ( !$db->tableExists( 'online' ) ) { |
70 | | - $db->sourceFile( dirname( __FILE__ ) . '/whosonline.sql' ); |
71 | | - } |
| 66 | + global $wgExtNewTables; |
| 67 | + $wgExtNewTables[] = array( 'online', |
| 68 | + dirname( __FILE__ ) . '/whosonline.sql' ); |
72 | 69 | // Continue |
73 | 70 | return true; |
74 | 71 | } |