Index: trunk/extensions/SemanticGoogleMaps/SGM_QueryPrinter.php |
— | — | @@ -10,6 +10,11 @@ |
11 | 11 | |
12 | 12 | class SGMResultPrinter extends SMWResultPrinter { |
13 | 13 | |
| 14 | + public function getName() { |
| 15 | + wfLoadExtensionMessages('SemanticGoogleMaps'); |
| 16 | + return wfMsg('semanticgooglemaps_printername'); |
| 17 | + } |
| 18 | + |
14 | 19 | public function getResult($results, $params, $outputmode) { |
15 | 20 | // skip checks, results with 0 entries are normal |
16 | 21 | $this->readParameters($params, $outputmode); |
— | — | @@ -26,9 +31,9 @@ |
27 | 32 | // print all result rows |
28 | 33 | while ( $row = $res->getNext() ) { |
29 | 34 | $lat = $lon = $title = $text = $icon = ""; |
| 35 | + $coords_for_page = array(); |
30 | 36 | foreach ($row as $i => $field) { |
31 | 37 | $pr = $field->getPrintRequest(); |
32 | | - $coords_for_page = array(); |
33 | 38 | while ( ($object = $field->getNextObject()) !== false ) { |
34 | 39 | if ($object->getTypeID() == '_geo') { // use shorter "LongText" for wikipage |
35 | 40 | // don't add geographical coordinates to the display |