From: Brion Vibber Date: Thu, 25 Dec 2003 03:25:17 +0000 (+0000) Subject: 'View source' link instead of 'protected page' X-Git-Tag: 1.3.0beta1~1212 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=a4753bca17277b8a7b27dd257d02472bddd3fb2a;p=lhc%2Fweb%2Fwiklou.git 'View source' link instead of 'protected page' --- 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; }