From: umherirrender Date: Sat, 25 Aug 2012 17:55:37 +0000 (+0200) Subject: Use __METHOD__ in SpecialUndelete.php X-Git-Tag: 1.31.0-rc.0~22603 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=7b324005bdbc1807d54e91c52b45b5522e77fce1;p=lhc%2Fweb%2Fwiklou.git Use __METHOD__ in SpecialUndelete.php Change-Id: Ia223f91a26b35677818d3ed46331813da7dbf209 --- diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index b1555c6dee..e2eab73423 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -120,7 +120,7 @@ class PageArchive { ), array( 'ar_namespace' => $this->title->getNamespace(), 'ar_title' => $this->title->getDBkey() ), - 'PageArchive::listRevisions', + __METHOD__, array( 'ORDER BY' => 'ar_timestamp DESC' ) ); $ret = $dbr->resultObject( $res ); return $ret; @@ -308,7 +308,9 @@ class PageArchive { $dbr = wfGetDB( DB_SLAVE ); $n = $dbr->selectField( 'archive', 'COUNT(ar_title)', array( 'ar_namespace' => $this->title->getNamespace(), - 'ar_title' => $this->title->getDBkey() ) ); + 'ar_title' => $this->title->getDBkey() ), + __METHOD__ + ); return ( $n > 0 ); }