Fix Special:ActiveUsers for PG, double-quotes are used to delimit identifiers not...
authorOverlordQ <overlordq@users.mediawiki.org>
Wed, 21 Oct 2009 05:36:24 +0000 (05:36 +0000)
committerOverlordQ <overlordq@users.mediawiki.org>
Wed, 21 Oct 2009 05:36:24 +0000 (05:36 +0000)
includes/specials/SpecialActiveusers.php

index 5fb7fa5..7212468 100644 (file)
@@ -51,7 +51,7 @@ class ActiveUsersPager extends UsersPager {
                $dbr = wfGetDB( DB_SLAVE );
                $conds = array( 'rc_user > 0' ); // Users - no anons
                $conds[] = 'ipb_deleted IS NULL'; // don't show hidden names
-               $conds[] = 'rc_log_type IS NULL OR rc_log_type != "newusers"';
+               $conds[] = "rc_log_type IS NULL OR rc_log_type != 'newusers'";
                if( $this->requestedUser != '' ) {
                        $conds[] = 'rc_user_text >= ' . $dbr->addQuotes( $this->requestedUser );
                }
@@ -156,4 +156,4 @@ class SpecialActiveUsers extends SpecialPage {
                $wgOut->addHTML( $s );
        }
 
-}
\ No newline at end of file
+}