Use __METHOD__ in SpecialUndelete.php
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 25 Aug 2012 17:55:37 +0000 (19:55 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Sat, 25 Aug 2012 17:55:37 +0000 (19:55 +0200)
Change-Id: Ia223f91a26b35677818d3ed46331813da7dbf209

includes/specials/SpecialUndelete.php

index b1555c6..e2eab73 100644 (file)
@@ -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 );
        }