Index: trunk/extensions/ApprovedRevs/ApprovedRevs.php |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | $wgHooks['BeforeParserFetchTemplateAndtitle'][] = 'ApprovedRevsHooks::setTranscludedPageRev'; |
50 | 50 | $wgHooks['ArticleDeleteComplete'][] = 'ApprovedRevsHooks::deleteRevisionApproval'; |
51 | 51 | $wgHooks['AdminLinks'][] = 'ApprovedRevsHooks::addToAdminLinks'; |
52 | | -$wgHooks['LoadExtensionSchemaUpdates'][] = 'ApprovedRevsHooks::onLoadExtensionSchemaUpdates'; |
| 52 | +$wgHooks['LoadExtensionSchemaUpdates'][] = 'ApprovedRevsHooks::describeDBSchema'; |
53 | 53 | |
54 | 54 | // logging |
55 | 55 | $wgLogTypes['approval'] = 'approval'; |
Index: trunk/extensions/ApprovedRevs/ApprovedRevs.hooks.php |
— | — | @@ -281,15 +281,15 @@ |
282 | 282 | return true; |
283 | 283 | } |
284 | 284 | |
285 | | - public static function onLoadExtensionSchemaUpdates() { |
| 285 | + public static function describeDBSchema() { |
286 | 286 | global $wgExtNewTables, $wgDBtype; |
287 | 287 | |
288 | 288 | $dir = dirname( __FILE__ ); |
289 | 289 | |
290 | 290 | // DB updates |
291 | | - if ( $wgDBtype == 'mysql' ) { |
| 291 | + //if ( $wgDBtype == 'mysql' ) { |
292 | 292 | $wgExtNewTables[] = array( 'approved_revs', "$dir/ApprovedRevs.sql" ); |
293 | | - } |
| 293 | + //} |
294 | 294 | return true; |
295 | 295 | } |
296 | 296 | } |