Hey,

What is the difference between "$content instanceof TextContent" and
> "$title->getContentModel() === CONTENT_MODEL_WIKITEXT"?
>   -Niklas
>

The former will be true for any content deriving from TextContent, which
currently includes WikitextContent, JavaScriptContent, CssContent and
RevisionTestModifyableContent. The later will only be true for
WikitextContent.

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil.
--
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to