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

Revision: 89141
Author:   foxtrott
Date:     2011-05-29 23:18:47 +0000 (Sun, 29 May 2011)
Log Message:
-----------
followup  r89140: enabled utf8

Modified Paths:
--------------
    trunk/extensions/SemanticGlossary/SemanticGlossaryParser.php
    trunk/extensions/SemanticGlossary/SemanticGlossaryTree.php

Modified: trunk/extensions/SemanticGlossary/SemanticGlossaryParser.php
===================================================================
--- trunk/extensions/SemanticGlossary/SemanticGlossaryParser.php        
2011-05-29 23:03:25 UTC (rev 89140)
+++ trunk/extensions/SemanticGlossary/SemanticGlossaryParser.php        
2011-05-29 23:18:47 UTC (rev 89141)
@@ -157,6 +157,7 @@
                        $this -> mGlossaryTree -> addTerm( $term, $elementData 
);
                }
 
+               var_export($this->mGlossaryTree);
                wfProfileOut( __METHOD__ );
        }
 
@@ -235,7 +236,7 @@
 
                        wfProfileIn( __METHOD__ . " 3 lexer" );
                        $matches = array( );
-                       preg_match_all( '/[[:alpha:]]+|[^[:alpha:]]/', $el -> 
nodeValue, $matches, PREG_OFFSET_CAPTURE | PREG_PATTERN_ORDER );
+                       preg_match_all( '/[[:alpha:]]+|[^[:alpha:]]/u', $el -> 
nodeValue, $matches, PREG_OFFSET_CAPTURE | PREG_PATTERN_ORDER );
                        wfProfileOut( __METHOD__ . " 3 lexer" );
 
                        if ( count( $matches ) == 0 || count( $matches[ 0 ] ) 
== 0 ) {

Modified: trunk/extensions/SemanticGlossary/SemanticGlossaryTree.php
===================================================================
--- trunk/extensions/SemanticGlossary/SemanticGlossaryTree.php  2011-05-29 
23:03:25 UTC (rev 89140)
+++ trunk/extensions/SemanticGlossary/SemanticGlossaryTree.php  2011-05-29 
23:18:47 UTC (rev 89141)
@@ -39,7 +39,7 @@
                }
 
                $matches;
-               preg_match_all( '/[[:alpha:]]+|[^[:alpha:]]/', $term, $matches 
);
+               preg_match_all( '/[[:alpha:]]+|[^[:alpha:]]/u', $term, $matches 
);
 
                $this -> addElement( $matches[ 0 ], $definition );
 


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

Reply via email to