__FUNCTION__ -> __METHOD__ in SpecialRecentchanges::checkLastModified()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 11 May 2009 15:32:51 +0000 (15:32 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 11 May 2009 15:32:51 +0000 (15:32 +0000)
includes/specials/SpecialRecentchanges.php

index 78843a8..2972a7f 100644 (file)
@@ -177,7 +177,7 @@ class SpecialRecentChanges extends SpecialPage {
        public function checkLastModified( $feedFormat ) {
                global $wgUseRCPatrol, $wgOut;
                $dbr = wfGetDB( DB_SLAVE );
-               $lastmod = $dbr->selectField( 'recentchanges', 'MAX(rc_timestamp)', false, __FUNCTION__ );
+               $lastmod = $dbr->selectField( 'recentchanges', 'MAX(rc_timestamp)', false, __METHOD__ );
                if( $feedFormat || !$wgUseRCPatrol ) {
                        if( $lastmod && $wgOut->checkLastModified( $lastmod ) ) {
                                # Client cache fresh and headers sent, nothing more to do.