Fix regression in 22905

This commit is contained in:
Brion Vibber 2007-06-12 19:49:38 +00:00
parent 4614a400fc
commit cbaaddfb8d

View file

@ -610,6 +610,7 @@ class EditPage {
if( $this->editintro ) {
$title = Title::newFromText( $this->editintro );
if( $title instanceof Title && $title->exists() && $title->userCanRead() ) {
global $wgOut;
$revision = Revision::newFromTitle( $title );
$wgOut->addSecondaryWikiText( $revision->getText() );
return true;