From: Brion Vibber Date: Tue, 2 Dec 2003 22:38:16 +0000 (+0000) Subject: Fix regression: view source when editing protected page thta can't edit X-Git-Tag: 1.1.0~32 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=a83fe291607953852bbc3c52d1fbb0265cb6e3a8;p=lhc%2Fweb%2Fwiklou.git Fix regression: view source when editing protected page thta can't edit --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 48a2691ed6..db9f17d7a3 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -27,7 +27,7 @@ class EditPage { wfCleanFormFields( $fields ); if ( ! $this->mTitle->userCanEdit() ) { - $this->mArticle->view(); + $wgOut->readOnlyPage( $this->mArticle->getContent(), true ); return; } if ( $wgUser->isBlocked() ) {