From 33c100a32795673fd4d9d532db965b92b73116e7 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 18 Aug 2008 17:38:11 +0000 Subject: [PATCH] Revert r39518. Fucks up type selector. Does anybody test this stuff? --- includes/specials/SpecialLog.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/includes/specials/SpecialLog.php b/includes/specials/SpecialLog.php index 80d427a16e..3154ed1335 100644 --- a/includes/specials/SpecialLog.php +++ b/includes/specials/SpecialLog.php @@ -26,21 +26,10 @@ * constructor */ function wfSpecialLog( $par = '' ) { - global $wgRequest, $wgOut, $wgUser, $wgLogTypes; - + global $wgRequest, $wgOut, $wgUser; # Get parameters - $parms = explode( '/', ($par = ( $par !== null ) ? $par : '' ) ); - $symsForAll = array( '*', 'all' ); - if ( $parms[0] != '' && ( in_array( $par, $wgLogTypes ) || in_array( $par, $symsForAll ) ) ) { - $type = $par; - $user = $wgRequest->getText( 'user' ); - } else if ( count( $parms ) == 2 ) { - $type = $parms[0]; - $user = $parms[1]; - } else { - $type = $wgRequest->getVal( 'group' ); - $user = ( $par != '' ) ? $par : $wgRequest->getText( 'user' ); - } + $type = $wgRequest->getVal( 'type', $par ); + $user = $wgRequest->getText( 'user' ); $title = $wgRequest->getText( 'page' ); $pattern = $wgRequest->getBool( 'pattern' ); $y = $wgRequest->getIntOrNull( 'year' ); -- 2.20.1