Also checking if the user can create the page if not exist, not only if he can edit...
authorRotem Liss <rotem@users.mediawiki.org>
Sat, 1 Jul 2006 12:07:47 +0000 (12:07 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Sat, 1 Jul 2006 12:07:47 +0000 (12:07 +0000)
includes/SkinTemplate.php

index ce24659..6657d38 100644 (file)
@@ -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(