Can't use $this in regex #e
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 18:40:25 +0000 (18:40 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 18:40:25 +0000 (18:40 +0000)
includes/svncommon.php

index 5e39e8d798a839957db0749c032981de6c98bad4..c1f4c8e6acb5eac574ff03d921c3882119b6bbad 100644 (file)
@@ -54,7 +54,7 @@ class SVNCommon
                // spaces to nbsp
                if (true)
                {
-                       $string = preg_replace('#( +)#e', '$this->format_spaces("\1")', $string);
+                       $string = preg_replace('#( +)#e', 'SVNCommon::format_spaces("\1")', $string);
                }
                // no word wrap
                else