Fix regression in 22905
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 12 Jun 2007 19:49:38 +0000 (19:49 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 12 Jun 2007 19:49:38 +0000 (19:49 +0000)
includes/EditPage.php

index e0dcc75..fa8e04c 100644 (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;