Index: branches/SemanticMaps0.8/INSTALL |
— | — | @@ -1,4 +1,4 @@ |
2 | | -[[Semantic Maps 0.7.4]] |
| 2 | +[[Semantic Maps 0.8]] |
3 | 3 | |
4 | 4 | You can find a wiki version of this document, which includes various helpfull links, at |
5 | 5 | http://mapping.referata.com/wiki/Help:Installation#Semantic_Maps |
Index: branches/SemanticMaps0.8/RELEASE-NOTES |
— | — | @@ -7,8 +7,10 @@ |
8 | 8 | http://www.mediawiki.org/wiki/Extension:Semantic_Maps/Version_history#Semantic_Maps_change_log |
9 | 9 | |
10 | 10 | |
11 | | -=== Semantic Maps 0.7.4 === |
| 11 | +=== Semantic Maps 0.8 === |
| 12 | +(2011-0x-xx) |
12 | 13 | |
| 14 | +* |
13 | 15 | |
14 | 16 | === Semantic Maps 0.7.3 === |
15 | 17 | (2010-11-30) |
Index: branches/SemanticMaps0.8/SemanticMaps.php |
— | — | @@ -26,6 +26,10 @@ |
27 | 27 | die( 'Not an entry point.' ); |
28 | 28 | } |
29 | 29 | |
| 30 | +if ( version_compare( $wgVersion, '1.17', '<' ) ) { |
| 31 | + die( '<b>Error:</b> This version of Semantic Maps requires MediaWiki 1.17 or above; use Maps 0.7.x for older versions.' ); |
| 32 | +} |
| 33 | + |
30 | 34 | // Show a warning if Maps is not loaded. |
31 | 35 | if ( ! defined( 'Maps_VERSION' ) ) { |
32 | 36 | die( '<b>Error:</b> You need to have <a href="http://www.mediawiki.org/wiki/Extension:Maps">Maps</a> installed in order to use <a href="http://www.mediawiki.org/wiki/Extension:Semantic Maps">Semantic Maps</a>.<br />' ); |
— | — | @@ -38,12 +42,10 @@ |
39 | 43 | |
40 | 44 | // Only initialize the extension when all dependencies are present. |
41 | 45 | if ( defined( 'Maps_VERSION' ) && defined( 'SMW_VERSION' ) ) { |
42 | | - define( 'SM_VERSION', '0.7.4 alpha' ); |
| 46 | + define( 'SM_VERSION', '0.8 alpha' ); |
43 | 47 | |
44 | | - $useExtensionPath = version_compare( $wgVersion, '1.16', '>=' ) && isset( $wgExtensionAssetsPath ) && $wgExtensionAssetsPath; |
45 | | - $smgScriptPath = ( $useExtensionPath ? $wgExtensionAssetsPath : $wgScriptPath . '/extensions' ) . '/SemanticMaps'; |
| 48 | + $smgScriptPath = $wgExtensionAssetsPath . '/SemanticMaps'; |
46 | 49 | $smgDir = dirname( __FILE__ ) . '/'; |
47 | | - unset( $useExtensionPath ); |
48 | 50 | |
49 | 51 | $smgStyleVersion = $wgStyleVersion . '-' . SM_VERSION; |
50 | 52 | |