From 761eb18980f6fdbd0400378180a8d4b1e8b714a3 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 26 Sep 2009 08:05:58 +0000 Subject: [PATCH] change $fname to __METHOD__ in Title::moveOverExistingRedirect() and Title::moveToNewTitle() --- includes/Title.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 4ec6b8e680..b36f34a841 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2856,7 +2856,7 @@ class Title { */ private function moveOverExistingRedirect( &$nt, $reason = '', $createRedirect = true ) { global $wgUseSquid, $wgUser; - $fname = 'Title::moveOverExistingRedirect'; + $comment = wfMsgForContent( '1movedto2_redir', $this->getPrefixedText(), $nt->getPrefixedText() ); if ( $reason ) { @@ -2878,7 +2878,7 @@ class Title { # by definition if we've got here it's rather uninteresting. # We have to remove it so that the next step doesn't trigger # a conflict on the unique namespace+title index... - $dbw->delete( 'page', array( 'page_id' => $newid ), $fname ); + $dbw->delete( 'page', array( 'page_id' => $newid ), __METHOD__ ); if ( !$dbw->cascadingDeletes() ) { $dbw->delete( 'revision', array( 'rev_page' => $newid ), __METHOD__ ); global $wgUseTrackbacks; @@ -2914,7 +2914,7 @@ class Title { 'page_latest' => $nullRevId, ), /* WHERE */ array( 'page_id' => $oldid ), - $fname + __METHOD__ ); $nt->resetArticleID( $oldid ); @@ -2935,13 +2935,13 @@ class Title { # Now, we record the link from the redirect to the new title. # It should have no other outgoing links... - $dbw->delete( 'pagelinks', array( 'pl_from' => $newid ), $fname ); + $dbw->delete( 'pagelinks', array( 'pl_from' => $newid ), __METHOD__ ); $dbw->insert( 'pagelinks', array( 'pl_from' => $newid, 'pl_namespace' => $nt->getNamespace(), 'pl_title' => $nt->getDBkey() ), - $fname ); + __METHOD__ ); $redirectSuppressed = false; } else { $this->resetArticleID( 0 ); @@ -2970,7 +2970,7 @@ class Title { */ private function moveToNewTitle( &$nt, $reason = '', $createRedirect = true ) { global $wgUseSquid, $wgUser; - $fname = 'MovePageForm::moveToNewTitle'; + $comment = wfMsgForContent( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() ); if ( $reason ) { $comment .= wfMsgExt( 'colon-separator', @@ -3004,7 +3004,7 @@ class Title { 'page_latest' => $nullRevId, ), /* WHERE */ array( 'page_id' => $oldid ), - $fname + __METHOD__ ); $nt->resetArticleID( $oldid ); @@ -3029,7 +3029,7 @@ class Title { 'pl_from' => $newid, 'pl_namespace' => $nt->getNamespace(), 'pl_title' => $nt->getDBkey() ), - $fname ); + __METHOD__ ); $redirectSuppressed = false; } else { $this->resetArticleID( 0 ); -- 2.20.1