From 930a4da4ce9652c03dc201caa816f38cb52f798b Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Wed, 21 Mar 2007 17:04:01 +0000 Subject: [PATCH] Use the expanded text (e.g. anonymous users only, account creation disabled instead of anononly,nocreate) in the block log items of the recent changes (i.e. don't check for the variable translate when translating the second parameter - it was a workaround for the block expiry to prevent ugly HTML from appearing, it is not needed for the block flags). --- includes/LogPage.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/LogPage.php b/includes/LogPage.php index 65dbbe4042..ecab3d80a3 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -185,8 +185,10 @@ class LogPage { } } else { array_unshift( $params, $titleLink ); - if ( $translate && $key == 'block/block' ) { - $params[1] = $wgLang->translateBlockExpiry( $params[1] ); + if ( $key == 'block/block' ) { + if ( $translate ) { + $params[1] = $wgLang->translateBlockExpiry( $params[1] ); + } $params[2] = isset( $params[2] ) ? self::formatBlockFlags( $params[2] ) : ''; -- 2.20.1