From a4753bca17277b8a7b27dd257d02472bddd3fb2a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 25 Dec 2003 03:25:17 +0000 Subject: [PATCH] 'View source' link instead of 'protected page' --- includes/Skin.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index ca101631fe..7768c3484d 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -897,9 +897,14 @@ class Skin { if ( ! $wgOut->isArticle() || $diff ) { $s = wfMsg( "protectedpage" ); - } else if ( $wgTitle->userCanEdit() ) { + } else { $n = $wgTitle->getPrefixedText(); - $t = wfMsg( "editthispage" ); + if ( $wgTitle->userCanEdit() ) { + $t = wfMsg( "editthispage" ); + } else { + #$t = wfMsg( "protectedpage" ); + $t = wfMsg( "viewsource" ); + } $oid = $red = ""; if ( $redirect ) { $red = "&redirect={$redirect}"; } @@ -907,8 +912,6 @@ class Skin { $oid = "&oldid={$oldid}"; } $s = $this->makeKnownLink( $n, $t, "action=edit{$oid}{$red}" ); - } else { - $s = wfMsg( "protectedpage" ); } return $s; } -- 2.20.1