fix replaceSection(): return null for content models that don't support sections
authordaniel <daniel.kinzler@wikimedia.de>
Mon, 23 Apr 2012 17:13:39 +0000 (19:13 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 23 Apr 2012 17:13:39 +0000 (19:13 +0200)
includes/Content.php

index e3b26a6..793e62b 100644 (file)
@@ -298,7 +298,7 @@ abstract class Content {
         * @return string Complete article text, or null if error
         */
        public function replaceSection( $section, Content $with, $sectionTitle = ''  ) {
-               return $this;
+               return null;
        }
 
        /**