From: Alexandre Emsenhuber Date: Mon, 14 Jul 2008 19:34:12 +0000 (+0000) Subject: Fatal error: Call to a member function formatNum() on a non-object in includes/Linker... X-Git-Tag: 1.31.0-rc.0~46519 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=61ea2e9018c12f7afcc2f21e5c60efda940b7143;p=lhc%2Fweb%2Fwiklou.git Fatal error: Call to a member function formatNum() on a non-object in includes/Linker.php on line 1218 --- diff --git a/includes/Linker.php b/includes/Linker.php index 7dfb60d5e6..03e7a9eb22 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1215,6 +1215,7 @@ class Linker { if ( $size == 0 ) { $stxt = wfMsgExt( 'historyempty', 'parsemag' ); } else { + global $wgLang; $stxt = wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $size ) ); $stxt = "($stxt)"; }