Renamed "removeDuplicates" field to be slightly clearer
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 29 Jan 2014 17:51:17 +0000 (09:51 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 29 Jan 2014 17:51:17 +0000 (09:51 -0800)
Change-Id: I1dfeca54b928f20f4ea28724095d7dc6b907acf1

includes/job/JobSpecification.php

index 5bfee0b..e074e5c 100644 (file)
@@ -92,7 +92,7 @@ class JobSpecification implements IJobSpecification {
        protected $title;
 
        /** @var bool Expensive jobs may set this to true */
-       protected $removeDuplicates;
+       protected $ignoreDuplicates;
 
        /**
         * @param string $type
@@ -108,7 +108,7 @@ class JobSpecification implements IJobSpecification {
                $this->type = $type;
                $this->params = $params;
                $this->title = $title ?: Title::newMainPage();
-               $this->removeDuplicates = !empty( $opts['removeDuplicates'] );
+               $this->ignoreDuplicates = !empty( $opts['removeDuplicates'] );
        }
 
        /**
@@ -158,7 +158,7 @@ class JobSpecification implements IJobSpecification {
         * @return bool Whether only one of each identical set of jobs should be run
         */
        public function ignoreDuplicates() {
-               return $this->removeDuplicates;
+               return $this->ignoreDuplicates;
        }
 
        /**