From: daniel Date: Mon, 23 Apr 2012 17:13:39 +0000 (+0200) Subject: fix replaceSection(): return null for content models that don't support sections X-Git-Tag: 1.31.0-rc.0~22097^2^2~216 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=7a4699d6ad701300ee9b7edd1ceeccc2886f8584;p=lhc%2Fweb%2Fwiklou.git fix replaceSection(): return null for content models that don't support sections --- diff --git a/includes/Content.php b/includes/Content.php index e3b26a696f..793e62b112 100644 --- a/includes/Content.php +++ b/includes/Content.php @@ -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; } /**