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

Revision: 95665
Author:   jeroendedauw
Date:     2011-08-29 15:00:15 +0000 (Mon, 29 Aug 2011)
Log Message:
-----------
added fix suggested by Benedikt K?\195?\164mpgen

Modified Paths:
--------------
    trunk/extensions/Spark/Spark.class.php

Modified: trunk/extensions/Spark/Spark.class.php
===================================================================
--- trunk/extensions/Spark/Spark.class.php      2011-08-29 14:38:38 UTC (rev 
95664)
+++ trunk/extensions/Spark/Spark.class.php      2011-08-29 15:00:15 UTC (rev 
95665)
@@ -33,7 +33,7 @@
        
        public function __construct( array $args, $contents ) {
                $this->parameters = $this->getSparkParameters( $args );
-               $this->contents = $contents;
+               $this->contents = $contents;//var_dump($this);exit;
        }
        
        /**
@@ -55,6 +55,8 @@
                                                ( is_null( $this->contents ) ? 
'' : htmlspecialchars( $this->contents ) ) .
                                        '</div>';
 
+                       $html = preg_replace( '/[ \t]+(\?)/', '$1', $html );
+                       
                        return array( $parser->insertStripItem( $html, 
$parser->mStripState ), 'noparse' => true, 'isHTML' => true );
                }
                else {


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

Reply via email to