Revision: 43511
Author:   brion
Date:     2008-11-14 23:40:36 +0000 (Fri, 14 Nov 2008)

Log Message:
-----------
Tweak to r43493 -- trim whitespace on the inside right side of the quote as 
well as the left (was incorrectly re-stripping outside the quote, where we 
already stripped whitespace)

Modified Paths:
--------------
    trunk/extensions/CategoryTree/CategoryTree.php

Modified: trunk/extensions/CategoryTree/CategoryTree.php
===================================================================
--- trunk/extensions/CategoryTree/CategoryTree.php      2008-11-14 23:15:13 UTC 
(rev 43510)
+++ trunk/extensions/CategoryTree/CategoryTree.php      2008-11-14 23:40:36 UTC 
(rev 43511)
@@ -290,7 +290,7 @@
        foreach ( $params as $p ) {
                if ( preg_match('/^\s*(\S.*?)\s*=\s*(.*?)\s*$/', $p, $m) ) {
                        $k = $m[1];
-                       $v = preg_replace('/^"\s*(.*?)"\s*$/', '$1', $m[2]); 
//strip any quotes enclusing the value
+                       $v = preg_replace('/^"\s*(.*?)\s*"$/', '$1', $m[2]); 
//strip any quotes enclusing the value
                }
                else {
                        $k = trim($p);



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

Reply via email to