r87688 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87687‎ | r87688 | r87689 >
Date:18:41, 8 May 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
small check for SMW version
Modified paths:
  • /trunk/extensions/SMWAutoRefresh/SMWAutoRefresh.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SMWAutoRefresh/SMWAutoRefresh.php
@@ -24,8 +24,12 @@
2525 die( 'Not an entry point.' );
2626 }
2727
 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+
2832 if ( !defined( 'SMWAutoRefresh_VERSION' ) ) {
29 - define( 'SMWAutoRefresh_VERSION', '0.1 rc' );
 33+ define( 'SMWAutoRefresh_VERSION', '0.1' );
3034
3135 $wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'other'][] = array(
3236 'path' => __FILE__,

Status & tagging log