Method to identify if a ChangesList is watchlist or normal
[lhc/web/wiklou.git] / includes / changes / ChangesList.php
index b996894..ca9efc3 100644 (file)
@@ -80,6 +80,14 @@ class ChangesList extends ContextSource {
                $this->watchlist = $value;
        }
 
+       /**
+        * @return bool true when setWatchlistDivs has been called
+        * @since 1.23
+        */
+       public function isWatchlist() {
+               return (bool)$this->watchlist;
+       }
+
        /**
         * As we use the same small set of messages in various methods and that
         * they are called often, we call them once and save them in $this->message