Index: trunk/extensions/SMWAutoRefresh/SMWAutoRefresh.php |
— | — | @@ -24,8 +24,12 @@ |
25 | 25 | die( 'Not an entry point.' ); |
26 | 26 | } |
27 | 27 | |
| 28 | +if ( version_compare( SMW_VERSION, '1.6', '>=' ) ) { |
| 29 | + die( '<b>Error:</b> SMW 1.6 and later have the functionality of SMWAutoRefresh build in. Disable SMWAutoRefresh.' ); |
| 30 | +} |
| 31 | + |
28 | 32 | if ( !defined( 'SMWAutoRefresh_VERSION' ) ) { |
29 | | - define( 'SMWAutoRefresh_VERSION', '0.1 rc' ); |
| 33 | + define( 'SMWAutoRefresh_VERSION', '0.1' ); |
30 | 34 | |
31 | 35 | $wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'other'][] = array( |
32 | 36 | 'path' => __FILE__, |