* Added variables 'wgRestrictionEdit' and 'wgRestrictionMove' for JS to header
authorRaimond Spekking <raymond@users.mediawiki.org>
Mon, 4 Jun 2007 10:09:41 +0000 (10:09 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Mon, 4 Jun 2007 10:09:41 +0000 (10:09 +0000)
RELEASE-NOTES
includes/Skin.php

index de8a6f7..1810ba8 100644 (file)
@@ -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 ==
 
index f10e095..b46bcfd 100644 (file)
@@ -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(),