http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97480

Revision: 97480
Author:   jeroendedauw
Date:     2011-09-19 12:48:38 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
fix some fails

Modified Paths:
--------------
    trunk/extensions/SemanticMaps/includes/SM_GeoCoordsHooks.php

Modified: trunk/extensions/SemanticMaps/includes/SM_GeoCoordsHooks.php
===================================================================
--- trunk/extensions/SemanticMaps/includes/SM_GeoCoordsHooks.php        
2011-09-19 12:48:17 UTC (rev 97479)
+++ trunk/extensions/SemanticMaps/includes/SM_GeoCoordsHooks.php        
2011-09-19 12:48:38 UTC (rev 97480)
@@ -32,15 +32,13 @@
                if ( $format === false ) {
                        // Only apply when there is more then one print request.
                        // This way requests comming from #show are ignored. 
-                       if ( count( $printRequests ) > 1 ) {
+                       if ( count( $printRequests ) > 0 ) {
                                $allCoords = true;
-                               $first = true;
                                
                                // Loop through the print requests to determine 
their types.
-                               foreach( $printRequests as $printRequest ) {
+                               foreach( $printRequests as /* SMWPrintRequest 
*/ $printRequest ) {
                                        // Skip the first request, as it's the 
object.
-                                       if ( $first ) {
-                                               $first = false;
+                                       if ( $printRequest->getMode() == 
SMWPrintRequest::PRINT_THIS ) {
                                                continue;
                                        }
                                        


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to