Follow up r65144 with Chad's fix, which nicely does the job.
authorPlatonides <platonides@users.mediawiki.org>
Wed, 9 Jun 2010 22:06:58 +0000 (22:06 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 9 Jun 2010 22:06:58 +0000 (22:06 +0000)
includes/SkinTemplate.php

index e049f57..1a531fe 100644 (file)
@@ -703,7 +703,7 @@ class SkinTemplate extends Skin {
                                $istalkclass = $istalk?' istalk':'';
                                $content_actions['edit'] = array(
                                        'class' => ( ( ( $action == 'edit' or $action == 'submit' ) and $section != 'new' ) ? 'selected' : '' ) . $istalkclass,
-                                       'text' => ( $this->mTitle->exists() || ( $this->mTitle->getNamespace() == NS_MEDIAWIKI ) )
+                                       'text' => ( $this->mTitle->exists() || ( $this->mTitle->getNamespace() == NS_MEDIAWIKI && !wfEmptyMsg( $this->mTitle->getText() ) ) )
                                                ? wfMsg( 'edit' )
                                                : wfMsg( 'create' ),
                                        'href' => $this->mTitle->getLocalUrl( $this->editUrlOptions() )