[Mediawiki-l] wrong function use?
Johannes Perl
johannes.perl at gmail.com
Mon Sep 10 12:59:42 UTC 2007
Brion Vibber <brion at ...> writes:
>
> Because Article::getContent() is horrible and should never be used by
> anybody outside of internal code that does article views. :)
>
> For clean behavior, use the Revision class:
>
> $rev = Revision::newFromTitle( $rev );
> if( $rev ) {
> $content = $rev->getText();
> } else {
> // Maybe do a nice error message here?
> $content = '';
> }
>
hi Brion,
thanks for your fast help.
Already corrected that an will give it to the author of the extension.
-Johannes
More information about the MediaWiki-l
mailing list