From: Niklas Laxström Date: Mon, 14 Jul 2008 19:10:47 +0000 (+0000) Subject: * Cleanup for r37375. Split duplicated code into function and really fix it X-Git-Tag: 1.31.0-rc.0~46520 X-Git-Url: https://git.cyclocoop.org/admin/Duna?a=commitdiff_plain;h=4a5ae9a4a9e81b19c6f3fa71137a5f49d263c57f;p=lhc%2Fweb%2Fwiklou.git * Cleanup for r37375. Split duplicated code into function and really fix it --- diff --git a/includes/Linker.php b/includes/Linker.php index 7af49ad381..7dfb60d5e6 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1211,6 +1211,17 @@ class Linker { return $block; } + public function formatRevisionSize( $size ) { + if ( $size == 0 ) { + $stxt = wfMsgExt( 'historyempty', 'parsemag' ); + } else { + $stxt = wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $size ) ); + $stxt = "($stxt)"; + } + $stxt = htmlspecialchars( $stxt ); + return "$stxt"; + } + /** @todo document */ function tocIndent() { return "\n