From 6d471c5ef37f96a5bfd227708f9afed15250b93b Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sat, 1 Jul 2006 12:07:47 +0000 Subject: [PATCH] Also checking if the user can create the page if not exist, not only if he can edit it, to decide if we should show 'edit' or 'view source'. --- includes/SkinTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index ce24659114..6657d38180 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -622,7 +622,7 @@ class SkinTemplate extends Skin { true); wfProfileIn( "$fname-edit" ); - if ( $this->mTitle->userCanEdit() ) { + if ( $this->mTitle->userCanEdit() && ( $this->mTitle->exists() || $this->mTitle->userCanCreate() ) ) { $istalk = $this->mTitle->isTalkPage(); $istalkclass = $istalk?' istalk':''; $content_actions['edit'] = array( -- 2.20.1