From: Platonides Date: Fri, 16 Apr 2010 22:29:11 +0000 (+0000) Subject: MediaWiki messages show content on view and edit even if they don't actually exist... X-Git-Tag: 1.31.0-rc.0~37088 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=253e1861e552e719dea48187cd74c7ebc9fe5057;p=lhc%2Fweb%2Fwiklou.git MediaWiki messages show content on view and edit even if they don't actually exist on db, so show edit instead of create, per thread.gmane.org/gmane.org.wikimedia.mediawiki/33792 --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 86bcc8adbc..32b64748cd 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -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() )