From 7a4699d6ad701300ee9b7edd1ceeccc2886f8584 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 23 Apr 2012 19:13:39 +0200 Subject: [PATCH] fix replaceSection(): return null for content models that don't support sections --- includes/Content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /** -- 2.20.1