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

Revision: 97816
Author:   reedy
Date:     2011-09-22 14:57:08 +0000 (Thu, 22 Sep 2011)
Log Message:
-----------
Fix single character access

Modified Paths:
--------------
    trunk/phase3/includes/Linker.php

Modified: trunk/phase3/includes/Linker.php
===================================================================
--- trunk/phase3/includes/Linker.php    2011-09-22 14:04:08 UTC (rev 97815)
+++ trunk/phase3/includes/Linker.php    2011-09-22 14:57:08 UTC (rev 97816)
@@ -1305,7 +1305,7 @@
                        # bug 7425
                        $target = trim( $target );
                        # Look at the first character
-                       if ( $target != '' && $target { 0 } === '/' ) {
+                       if ( $target != '' && $target[0] === '/' ) {
                                # / at end means we don't want the slash to be 
shown
                                $m = array();
                                $trailingSlashes = preg_match_all( '%(/+)$%', 
$target, $m );


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

Reply via email to