X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fcontenthandler.txt;h=6209b1426c991c8fdaa1e28407fde1e0609105b3;hb=d2fa6856a8e49917de3b138ed4065611ce9a2e77;hp=5f9a0b039ea90344854d6d42f48619f2745dcdeb;hpb=44aec8a00a9f0f92a746ca575b58147fea1135e5;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/contenthandler.txt b/docs/contenthandler.txt index 5f9a0b039e..6209b1426c 100644 --- a/docs/contenthandler.txt +++ b/docs/contenthandler.txt @@ -96,7 +96,7 @@ used. Most importantly, the following functions have been deprecated: -* Revisions::getText() and Revisions::getRawText() is deprecated in favor Revisions::getContent() +* Revisions::getText() is deprecated in favor Revisions::getContent() * WikiPage::getText() is deprecated in favor WikiPage::getContent() Also, the old Article::getContent() (which returns text) is superceded by Article::getContentObject(). However, both @@ -148,7 +148,8 @@ using a model or format different from the default will result in an error. There are some new globals that can be used to control the behavior of the ContentHandler facility: -* $wgContentHandlers associates content model IDs with the names of the appropriate ContentHandler subclasses. +* $wgContentHandlers associates content model IDs with the names of the appropriate ContentHandler subclasses + or callbacks that create an instance of the appropriate ContentHandler subclass. * $wgNamespaceContentModels maps namespace IDs to a content model that should be the default for that namespace.