Index: trunk/extensions/geoserver/geoserver.php |
— | — | @@ -20,7 +20,7 @@ |
21 | 21 | */ |
22 | 22 | function wfGeoServerExtension () { |
23 | 23 | global $wgParser, $wgHooks ; |
24 | | - $wgParser->setHook ( 'geo' , 'parseGeo' ) ; |
| 24 | + $wgParser->setTransparentTagHook ( 'geo' , 'parseGeo' ) ; |
25 | 25 | # $wgHooks['ArticleSaveComplete'][] = 'articleDeleteGeo'; |
26 | 26 | $wgHooks['ArticleDelete'][] = 'articleDeleteGeo'; |
27 | 27 | $wgHooks['ArticleEditUpdatesDeleteFromRecentchanges'][] = 'articleSaveGeo'; |
— | — | @@ -36,11 +36,8 @@ |
37 | 37 | * |
38 | 38 | * Return markup, but also a pointer to Map sources |
39 | 39 | */ |
40 | | -function parseGeo ( $text, $params, &$parser, &$frame ) { |
| 40 | +function parseGeo ( $text, $params, &$parser ) { |
41 | 41 | global $action, $GeoserverParameters, $wgWikiMapsJS; |
42 | | - |
43 | | - $text = $parser->recursiveTagParse( $text, $frame ); |
44 | | - |
45 | 42 | $latpat= '(-?[0-9.]*) *(([0-9.]+) *([0-9.]+)?)? *([NS])'; |
46 | 43 | $lonpat= '(-?[0-9.]*) *(([0-9.]+) *([0-9.]+)?)? *([EW])'; |
47 | 44 | $featcodepat = '(([AHLPRSTUV])\.([A-Z.]*))?'; |