diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
commit | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch) | |
tree | ec04cc15b867bc21eedca904cea9af0254531a11 /includes/PatrolLog.php | |
parent | a22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff) |
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook
* Use only css to hide our menu bar when printing
Diffstat (limited to 'includes/PatrolLog.php')
-rw-r--r-- | includes/PatrolLog.php | 12 |
1 files changed, 6 insertions, 6 deletions
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' ) |