* (bug 12294) Namespace class renamed to MWNamespace for PHP 5.3 compatibility
[lhc/web/wiklou.git] / includes / Linker.php
index 5b87aa4..c3081e3 100644 (file)
@@ -1065,7 +1065,7 @@ class Linker {
        protected function formatLinksInCommentCallback( $match ) {
                global $wgContLang;
 
-               $medians = '(?:' . preg_quote( Namespace::getCanonicalName( NS_MEDIA ), '/' ) . '|';
+               $medians = '(?:' . preg_quote( MWNamespace::getCanonicalName( NS_MEDIA ), '/' ) . '|';
                $medians .= preg_quote( $wgContLang->getNsText( NS_MEDIA ), '/' ) . '):';
                
                $comment = $match[0];