Index: trunk/extensions/SemanticMediaWiki/SemanticMediaWiki.hooks.php |
— | — | @@ -24,9 +24,12 @@ |
25 | 25 | * @return true |
26 | 26 | */ |
27 | 27 | public static function onSchemaUpdate( /* DatabaseUpdater */ $updater = null ) { |
28 | | - // $updater can be null in MW 1.16.x. This can be removed when dropping 1.16 compat. |
| 28 | + // $updater can be null in MW 1.16. |
29 | 29 | if ( !is_null( $updater ) ) { |
30 | | - $updater->addPostDatabaseUpdateMaintenance( 'SMWSetupScript' ); |
| 30 | + // Method was added in MW 1.19. |
| 31 | + if ( is_callable( array( $updater, 'addPostDatabaseUpdateMaintenance' ) ) ) { |
| 32 | + $updater->addPostDatabaseUpdateMaintenance( 'SMWSetupScript' ); |
| 33 | + } |
31 | 34 | } |
32 | 35 | |
33 | 36 | return true; |