Index: trunk/phase3/includes/specials/SpecialLog.php |
— | — | @@ -26,21 +26,10 @@ |
27 | 27 | * constructor |
28 | 28 | */ |
29 | 29 | function wfSpecialLog( $par = '' ) { |
30 | | - global $wgRequest, $wgOut, $wgUser, $wgLogTypes; |
31 | | - |
| 30 | + global $wgRequest, $wgOut, $wgUser; |
32 | 31 | # Get parameters |
33 | | - $parms = explode( '/', ($par = ( $par !== null ) ? $par : '' ) ); |
34 | | - $symsForAll = array( '*', 'all' ); |
35 | | - if ( $parms[0] != '' && ( in_array( $par, $wgLogTypes ) || in_array( $par, $symsForAll ) ) ) { |
36 | | - $type = $par; |
37 | | - $user = $wgRequest->getText( 'user' ); |
38 | | - } else if ( count( $parms ) == 2 ) { |
39 | | - $type = $parms[0]; |
40 | | - $user = $parms[1]; |
41 | | - } else { |
42 | | - $type = $wgRequest->getVal( 'group' ); |
43 | | - $user = ( $par != '' ) ? $par : $wgRequest->getText( 'user' ); |
44 | | - } |
| 32 | + $type = $wgRequest->getVal( 'type', $par ); |
| 33 | + $user = $wgRequest->getText( 'user' ); |
45 | 34 | $title = $wgRequest->getText( 'page' ); |
46 | 35 | $pattern = $wgRequest->getBool( 'pattern' ); |
47 | 36 | $y = $wgRequest->getIntOrNull( 'year' ); |