Index: trunk/extensions/SemanticResultFormats/SemanticResultFormats.php |
— | — | @@ -20,16 +20,20 @@ |
21 | 21 | die( 'Not an entry point.' ); |
22 | 22 | } |
23 | 23 | |
| 24 | +if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
| 25 | + die( '<b>Error:</b> This version of Maps requires MediaWiki 1.16 or above; use SRF 1.6.x for older versions.' ); |
| 26 | +} |
| 27 | + |
24 | 28 | // Show a warning if Semantic MediaWiki is not loaded. |
25 | 29 | if ( ! defined( 'SMW_VERSION' ) ) { |
26 | 30 | die( '<b>Error:</b> You need to have <a href="http://semantic-mediawiki.org/wiki/Semantic_MediaWiki">Semantic MediaWiki</a> installed in order to use <a href="http://www.mediawiki.org/wiki/Extension:Semantic Result Formats">Semantic Result Formats</a>.<br />' ); |
27 | 31 | } |
28 | 32 | |
29 | 33 | if ( version_compare( SMW_VERSION, '1.6.2 alpha', '<' ) ) { |
30 | | - die( '<b>Error:</b> This version of Semantic Result Formats requires Semantic MediaWiki 1.6.3 or above; use Semantic Result Formats <= 1.6.2 for older versions of SMW.' ); |
| 34 | + die( '<b>Error:</b> This version of Semantic Result Formats requires Semantic MediaWiki 1.7 or above; use Semantic Result Formats 1.6.1 for older versions of SMW.' ); |
31 | 35 | } |
32 | 36 | |
33 | | -define( 'SRF_VERSION', '1.6.3 alpha' ); |
| 37 | +define( 'SRF_VERSION', '1.7 alpha' ); |
34 | 38 | |
35 | 39 | // Require the settings file. |
36 | 40 | require dirname( __FILE__ ) . '/SRF_Settings.php'; |
— | — | @@ -39,11 +43,6 @@ |
40 | 44 | |
41 | 45 | $wgExtensionMessagesFiles['SemanticResultFormats'] = dirname( __FILE__ ) . '/SRF_Messages.php'; |
42 | 46 | |
43 | | -// To ensure Semantic Result Formats works with pre-1.16 MediaWiki versions. |
44 | | -if ( !class_exists( 'Html' ) ) { |
45 | | - $wgAutoloadClasses['Html'] = dirname( __FILE__ ) . '/compat/Html.php'; |
46 | | -} |
47 | | - |
48 | 47 | // FIXME: hardcoded path |
49 | 48 | $srfgScriptPath = $wgScriptPath . '/extensions/SemanticResultFormats'; |
50 | 49 | $srfgIP = dirname( __FILE__ ); |