From aeafb71568cb5452f295ce03bae568179499490d Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Mon, 4 Jun 2007 10:09:41 +0000 Subject: [PATCH] * Added variables 'wgRestrictionEdit' and 'wgRestrictionMove' for JS to header --- RELEASE-NOTES | 1 + includes/Skin.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index de8a6f7b20..1810ba864d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -54,6 +54,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 7691) Deletion log now shown when creating a new article, following MediaWiki:Noarticletext(anon) or MediaWiki:Newarticletext(anon). current user. +* Added variables 'wgRestrictionEdit' and 'wgRestrictionMove' for JS to header == Bugfixes since 1.10 == diff --git a/includes/Skin.php b/includes/Skin.php index f10e0950b5..b46bcfd9a8 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -300,7 +300,7 @@ class Skin extends Linker { $ns = $wgTitle->getNamespace(); $nsname = isset( $wgCanonicalNamespaceNames[ $ns ] ) ? $wgCanonicalNamespaceNames[ $ns ] : $wgTitle->getNsText(); - + $vars = array( 'skin' => $data['skinname'], 'stylepath' => $wgStylePath, @@ -313,6 +313,8 @@ class Skin extends Linker { 'wgPageName' => $wgTitle->getPrefixedDBKey(), 'wgTitle' => $wgTitle->getText(), 'wgAction' => $wgRequest->getText( 'action', 'view' ), + 'wgRestrictionEdit' => $wgTitle->getRestrictions( 'edit' ), + 'wgRestrictionMove' => $wgTitle->getRestrictions( 'move' ), 'wgArticleId' => $wgTitle->getArticleId(), 'wgIsArticle' => $wgOut->isArticle(), 'wgUserName' => $wgUser->isAnon() ? NULL : $wgUser->getName(), -- 2.20.1