git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrgeo@333
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
$p4 = '';
$n = sscanf($input, '%f %s %f %s', &$p1, &$p2, &$p3, &$p4);
if ($n != 4) throw new Exception(utf8_encode('Die Koordinaten sind falsch formatiert.'));
- if ($p2 != 'N') return new Exception(utf8_encode('2. Parameter der Koordinaten muss N sein.'));
- if ($p4 != 'E') return new Exception(utf8_encode('4. Parameter der Koordinaten muss E sein.'));
+ if ($p2 != 'N') throw new Exception(utf8_encode('2. Parameter der Koordinaten muss N sein.'));
+ if ($p4 != 'E') throw new Exception(utf8_encode('4. Parameter der Koordinaten muss E sein.'));
return array($p1, $p3);
}
<?php
$wgExtensionCredits['parserhook'][] = array(
'name' => 'Winterrodeln Geo',
- 'version' => '1.0.0',
+ 'version' => '1.1.0',
'author' =>'Philipp Spitzer',
'url' => 'http://www.winterrodeln.org',
'description' => 'This extension replaces the geo tag with a link.'