Merge "Add browser test for basic watchlist functionality"
[lhc/web/wiklou.git] / includes / content / ContentHandler.php
index eab3afb..3b54494 100644 (file)
@@ -332,6 +332,13 @@ abstract class ContentHandler {
                return self::$handlers[$modelId];
        }
 
+       /**
+        * Clean up handlers cache.
+        */
+       public static function cleanupHandlersCache() {
+               self::$handlers = [];
+       }
+
        /**
         * Returns the localized name for a given content model.
         *
@@ -1062,7 +1069,7 @@ abstract class ContentHandler {
         * @param Revision $undo The revision to undo
         * @param Revision $undoafter Must be an earlier revision than $undo
         *
-        * @return mixed String on success, false on failure
+        * @return mixed Content on success, false on failure
         */
        public function getUndoContent( Revision $current, Revision $undo, Revision $undoafter ) {
                $cur_content = $current->getContent();