From: daniel Date: Mon, 5 Nov 2012 16:21:53 +0000 (+0100) Subject: (Bug 41658) Allow diffs across text based content. X-Git-Tag: 1.31.0-rc.0~21719^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=5a583b295cb6945b88e37c55861a3ac823c2db41;p=lhc%2Fweb%2Fwiklou.git (Bug 41658) Allow diffs across text based content. This removes a misguided check and thereby allows diffs to be created between different kinds of (text based) content. Change-Id: I6b385fcdead22983edc089e1314151f9babdf7c9 --- diff --git a/includes/content/ContentHandler.php b/includes/content/ContentHandler.php index ee2f2eda51..b61dc34e4b 100644 --- a/includes/content/ContentHandler.php +++ b/includes/content/ContentHandler.php @@ -582,8 +582,6 @@ abstract class ContentHandler { $rcid = 0, # FIXME: use everywhere! $refreshCache = false, $unhide = false ) { - $this->checkModelID( $context->getTitle()->getContentModel() ); - $diffEngineClass = $this->getDiffEngineClass(); return new $diffEngineClass( $context, $old, $new, $rcid, $refreshCache, $unhide );