From: Rotem Liss Date: Wed, 21 Mar 2007 17:04:01 +0000 (+0000) Subject: Use the expanded text (e.g. anonymous users only, account creation disabled instead... X-Git-Tag: 1.31.0-rc.0~53656 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=930a4da4ce9652c03dc201caa816f38cb52f798b;p=lhc%2Fweb%2Fwiklou.git 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). --- 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] ) : '';