From: Niklas Laxström Date: Sat, 10 Nov 2007 13:38:37 +0000 (+0000) Subject: * Everything calls this function statically, mark it such to prevent E_STRICT X-Git-Tag: 1.31.0-rc.0~50933 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=fa860586e3a92e0c74bb3e0d4e22d193c4d16f1a;p=lhc%2Fweb%2Fwiklou.git * Everything calls this function statically, mark it such to prevent E_STRICT --- diff --git a/includes/Revision.php b/includes/Revision.php index 3947092349..80fc03cdea 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -794,9 +794,8 @@ class Revision { * @param bool $minor * @return Revision */ - function newNullRevision( &$dbw, $pageId, $summary, $minor ) { - $fname = 'Revision::newNullRevision'; - wfProfileIn( $fname ); + public static function newNullRevision( &$dbw, $pageId, $summary, $minor ) { + wfProfileIn( __METHOD__ ); $current = $dbw->selectRow( array( 'page', 'revision' ), @@ -805,7 +804,7 @@ class Revision { 'page_id' => $pageId, 'page_latest=rev_id', ), - $fname ); + __METHOD__ ); if( $current ) { $revision = new Revision( array( @@ -818,7 +817,7 @@ class Revision { $revision = null; } - wfProfileOut( $fname ); + wfProfileOut( __METHOD__ ); return $revision; }