From ca32f08966f1b51fcb19460f0996bb0c4048e6fe Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 3 Dec 2011 13:29:22 +0100 Subject: Update to MediaWiki 1.18.0 * also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing --- includes/PatrolLog.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'includes/PatrolLog.php') diff --git a/includes/PatrolLog.php b/includes/PatrolLog.php index 5727853e..0df48a85 100644 --- a/includes/PatrolLog.php +++ b/includes/PatrolLog.php @@ -35,14 +35,14 @@ class PatrolLog { * * @param $title Title of the page that was patrolled * @param $params Array: log parameters (from logging.log_params) - * @param $skin Skin to use for building links, etc. + * @param $lang Language object to use, or false * @return String */ - public static function makeActionText( $title, $params, $skin ) { + public static function makeActionText( $title, $params, $lang ) { list( $cur, /* $prev */, $auto ) = $params; - if( is_object( $skin ) ) { + if( is_object( $lang ) ) { # Standard link to the page in question - $link = $skin->link( $title ); + $link = Linker::link( $title ); if( $title->exists() ) { # Generate a diff link $query = array( @@ -50,9 +50,9 @@ class PatrolLog { 'diff' => 'prev' ); - $diff = $skin->link( + $diff = Linker::link( $title, - htmlspecialchars( wfMsg( 'patrol-log-diff', $cur ) ), + htmlspecialchars( wfMsg( 'patrol-log-diff', $lang->formatNum( $cur, true ) ) ), array(), $query, array( 'known', 'noclasses' ) -- cgit v1.2.3-54-g00ecf