Merge "Move around "ا" to after "آ" and not before"
[lhc/web/wiklou.git] / includes / jobqueue / jobs / RefreshLinksJob.php
index b4ead5d..9f3550f 100644 (file)
@@ -301,6 +301,12 @@ class RefreshLinksJob extends Job {
        }
 
        public function workItemCount() {
-               return isset( $this->params['pages'] ) ? count( $this->params['pages'] ) : 1;
+               if ( !empty( $this->params['recursive'] ) ) {
+                       return 0; // nothing actually refreshed
+               } elseif ( isset( $this->params['pages'] ) ) {
+                       return count( $this->params['pages'] );
+               }
+
+               return 1; // one title
        }
 }