Merge "Cache countable statistics to prevent multiple counting on import"
[lhc/web/wiklou.git] / includes / revisiondelete / RevDelRevisionList.php
index 6c47d4a..4a0fff8 100644 (file)
@@ -30,7 +30,7 @@
  */
 class RevDelRevisionList extends RevDelList {
        /** @var int */
-       var $currentRevId;
+       public $currentRevId;
 
        public function getType() {
                return 'revision';
@@ -54,7 +54,7 @@ class RevDelRevisionList extends RevDelList {
        }
 
        /**
-        * @param DatabaseBase $db
+        * @param IDatabase $db
         * @return mixed
         */
        public function doQuery( $db ) {
@@ -137,7 +137,7 @@ class RevDelRevisionList extends RevDelList {
        public function doPostCommitUpdates() {
                $this->title->purgeSquid();
                // Extensions that require referencing previous revisions may need this
-               wfRunHooks( 'ArticleRevisionVisibilitySet', array( &$this->title ) );
+               Hooks::run( 'ArticleRevisionVisibilitySet', array( $this->title, $this->ids ) );
                return Status::newGood();
        }
 }