| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function addToOutput( OutputFacade $output ) { |
||
| 22 | $leafletPath = $GLOBALS['wgScriptPath'] . '/extensions/Maps/resources/leaflet/leaflet'; |
||
| 23 | |||
| 24 | $output->addHeadItem( |
||
| 25 | 'MapsGeoJsonHeadItem', |
||
| 26 | Html::linkedStyle( "$leafletPath/leaflet.css" ) . Html::linkedScript( "$leafletPath/leaflet.js" ) |
||
| 27 | ); |
||
| 28 | |||
| 29 | $output->addHTML( $this->getJavascript() . $this->getHtml() ); |
||
| 30 | $output->addModules( 'ext.maps.leaflet.editor' ); |
||
| 31 | } |
||
| 32 | |||
| 84 |