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

Revision: 67253
Author:   jeroendedauw
Date:     2010-06-02 21:27:46 +0000 (Wed, 02 Jun 2010)

Log Message:
-----------
Follow up to r67250

Modified Paths:
--------------
    trunk/extensions/SemanticMaps/Features/QueryPrinters/SM_MapPrinter.php
    trunk/extensions/SemanticMaps/Features/QueryPrinters/SM_QueryPrinters.php

Modified: trunk/extensions/SemanticMaps/Features/QueryPrinters/SM_MapPrinter.php
===================================================================
--- trunk/extensions/SemanticMaps/Features/QueryPrinters/SM_MapPrinter.php      
2010-06-02 21:27:21 UTC (rev 67252)
+++ trunk/extensions/SemanticMaps/Features/QueryPrinters/SM_MapPrinter.php      
2010-06-02 21:27:46 UTC (rev 67253)
@@ -120,10 +120,11 @@
                
                $manager = new ValidatorManager();
                
-               $showMap = $manager->manageParameters( $mapProperties, 
$parameterInfo );
+               $showMap = $manager->manageParsedParameters( $mapProperties, 
$parameterInfo );
                
                if ( $showMap ) {
-                       $this->setMapProperties( $manager->getParameters( false 
), __CLASS__ );
+                       var_dump($manager->getParameters( false ));exit;
+                       $this->setMapProperties(  );
                }
                
                $this->errorList  = $manager->getErrorList();
@@ -137,9 +138,9 @@
         * @param array $mapProperties
         * @param string $className
         */
-       private function setMapProperties( array $mapProperties, $className ) {
+       private function setMapProperties( array $mapProperties ) {
                foreach ( $mapProperties as $paramName => $paramValue ) {
-                       if ( ! property_exists( $className, $paramName ) ) {
+                       if ( ! property_exists( __CLASS__, $paramName ) ) {
                                $this-> { $paramName } = $paramValue;
                        }
                        else {

Modified: 
trunk/extensions/SemanticMaps/Features/QueryPrinters/SM_QueryPrinters.php
===================================================================
--- trunk/extensions/SemanticMaps/Features/QueryPrinters/SM_QueryPrinters.php   
2010-06-02 21:27:21 UTC (rev 67252)
+++ trunk/extensions/SemanticMaps/Features/QueryPrinters/SM_QueryPrinters.php   
2010-06-02 21:27:46 UTC (rev 67253)
@@ -64,7 +64,7 @@
                        ),
                        'height' => array(
                                'default' => $egMapsMapHeight
-                       ),                      
+                       ),
                        'geoservice' => array(
                                'criteria' => array(
                                        'in_array' => 
$egMapsAvailableGeoServices



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to