From: Tim Starling Date: Sun, 25 Jan 2004 02:24:46 +0000 (+0000) Subject: Option to hide logged in users X-Git-Tag: 1.3.0beta1~1110 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=5431a39742e20e97439eb45542852266fa5aa14f;p=lhc%2Fweb%2Fwiklou.git Option to hide logged in users --- diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index c38bf633ff..986c389f75 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -3,7 +3,7 @@ function wfSpecialRecentchanges( $par ) { global $wgUser, $wgOut, $wgLang, $wgTitle; - global $days, $hideminor, $from, $hidebots; # From query string + global $days, $hideminor, $from, $hidebots, $hideliu; # From query string $fname = "wfSpecialRecentchanges"; if( $par ) { @@ -12,6 +12,7 @@ function wfSpecialRecentchanges( $par ) if( in_array( "bots", $bits ) ) $hidebots = 0; if( in_array( "hideminor", $bits ) ) $hideminor = 1; if( in_array( "minor", $bits ) ) $hideminor = 0; + if( in_array( "hideliu", $bits) ) $hideliu = 1; } $sql = "SELECT MAX(rc_timestamp) AS lastmod FROM recentchanges"; @@ -78,6 +79,10 @@ function wfSpecialRecentchanges( $par ) if( $hidebots ) { $hidem .= " AND rc_bot=0"; } + + if ( $hideliu ) { + $hidem .= " AND rc_user=0"; + } $uid = $wgUser->getID(); $sql2 = "SELECT recentchanges.*" . ($uid ? ",wl_user" : "") . " FROM recentchanges " .