Index: trunk/extensions/SemanticMaps/includes/forminputs/SM_FormInput.php |
— | — | @@ -129,9 +129,12 @@ |
130 | 130 | |
131 | 131 | $this->service->addResourceModules( $this->getResourceModules() ); |
132 | 132 | |
| 133 | + $configVars = Skin::makeVariablesScript( $this->service->getConfigVariables() ); |
| 134 | + |
133 | 135 | if ( true /* !is_null( $wgTitle ) && $wgTitle->isSpecialPage() */ ) { // TODO |
134 | 136 | global $wgOut; |
135 | 137 | $this->service->addDependencies( $wgOut ); |
| 138 | + $wgOut->addScript( $configVars ); |
136 | 139 | } |
137 | 140 | else { |
138 | 141 | $this->service->addDependencies( $wgParser ); |
Index: trunk/extensions/SemanticMaps/includes/queryprinters/SM_MapPrinter.php |
— | — | @@ -192,7 +192,12 @@ |
193 | 193 | |
194 | 194 | $mapName = $this->service->getMapId(); |
195 | 195 | |
196 | | - SMWOutputs::requireHeadItem( $mapName, $this->service->getDependencyHtml() ); |
| 196 | + SMWOutputs::requireHeadItem( |
| 197 | + $mapName, |
| 198 | + $this->service->getDependencyHtml() . |
| 199 | + $configVars = Skin::makeVariablesScript( $this->service->getConfigVariables() ) |
| 200 | + ); |
| 201 | + |
197 | 202 | foreach ( $this->service->getResourceModules() as $resourceModule ) { |
198 | 203 | SMWOutputs::requireResource( $resourceModule ); |
199 | 204 | } |