Index: trunk/extensions/SemanticMaps/INSTALL |
— | — | @@ -1,4 +1,4 @@ |
2 | | -[[Semantic Maps 1.0.2]] |
| 2 | +[[Semantic Maps 1.0.3]] |
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: trunk/extensions/SemanticMaps/includes/forminputs/SM_FormInput.php |
— | — | @@ -131,6 +131,11 @@ |
132 | 132 | |
133 | 133 | $configVars = Skin::makeVariablesScript( $this->service->getConfigVariables() ); |
134 | 134 | |
| 135 | + // MediaWiki 1.17 does not play nice with addScript, so add the vars via the globals hook. |
| 136 | + if ( version_compare( $GLOBALS['wgVersion'], '1.18', '<' ) ) { |
| 137 | + $GLOBALS['egMapsGlobalJSVars'] += $this->service->getConfigVariables(); |
| 138 | + } |
| 139 | + |
135 | 140 | if ( true /* !is_null( $wgTitle ) && $wgTitle->isSpecialPage() */ ) { // TODO |
136 | 141 | global $wgOut; |
137 | 142 | $this->service->addDependencies( $wgOut ); |
Index: trunk/extensions/SemanticMaps/includes/queryprinters/SM_MapPrinter.php |
— | — | @@ -192,6 +192,11 @@ |
193 | 193 | |
194 | 194 | $mapName = $this->service->getMapId(); |
195 | 195 | |
| 196 | + // MediaWiki 1.17 does not play nice with addScript, so add the vars via the globals hook. |
| 197 | + if ( version_compare( $GLOBALS['wgVersion'], '1.18', '<' ) ) { |
| 198 | + $GLOBALS['egMapsGlobalJSVars'] += $this->service->getConfigVariables(); |
| 199 | + } |
| 200 | + |
196 | 201 | SMWOutputs::requireHeadItem( |
197 | 202 | $mapName, |
198 | 203 | $this->service->getDependencyHtml() . |
Index: trunk/extensions/SemanticMaps/SemanticMaps.php |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | die( '<b>Error:</b> This version of Semantic Maps requires Semantic MediaWiki 1.6 or above; use Semantic Maps 0.7.x for older versions.' ); |
47 | 47 | } |
48 | 48 | |
49 | | -define( 'SM_VERSION', '1.0.2' ); |
| 49 | +define( 'SM_VERSION', '1.0.3 alpha' ); |
50 | 50 | |
51 | 51 | $wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'other'][] = array( |
52 | 52 | 'path' => __FILE__, |