MediaWiki messages show content on view and edit even if they don't actually exist...
authorPlatonides <platonides@users.mediawiki.org>
Fri, 16 Apr 2010 22:29:11 +0000 (22:29 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Fri, 16 Apr 2010 22:29:11 +0000 (22:29 +0000)
includes/SkinTemplate.php

index 86bcc8a..32b6474 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()
+                                       'text' => ( $this->mTitle->exists() || ( $this->mTitle->getNamespace() == NS_MEDIAWIKI ) )
                                                ? wfMsg( 'edit' )
                                                : wfMsg( 'create' ),
                                        'href' => $this->mTitle->getLocalUrl( $this->editUrlOptions() )