r22700 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22699‎ | r22700 | r22701 >
Date:10:09, 4 June 2007
Author:raymond
Status:old
Tags:
Comment:
* Added variables 'wgRestrictionEdit' and 'wgRestrictionMove' for JS to header
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Skin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Skin.php
@@ -300,7 +300,7 @@
301301
302302 $ns = $wgTitle->getNamespace();
303303 $nsname = isset( $wgCanonicalNamespaceNames[ $ns ] ) ? $wgCanonicalNamespaceNames[ $ns ] : $wgTitle->getNsText();
304 -
 304+
305305 $vars = array(
306306 'skin' => $data['skinname'],
307307 'stylepath' => $wgStylePath,
@@ -313,6 +313,8 @@
314314 'wgPageName' => $wgTitle->getPrefixedDBKey(),
315315 'wgTitle' => $wgTitle->getText(),
316316 'wgAction' => $wgRequest->getText( 'action', 'view' ),
 317+ 'wgRestrictionEdit' => $wgTitle->getRestrictions( 'edit' ),
 318+ 'wgRestrictionMove' => $wgTitle->getRestrictions( 'move' ),
317319 'wgArticleId' => $wgTitle->getArticleId(),
318320 'wgIsArticle' => $wgOut->isArticle(),
319321 'wgUserName' => $wgUser->isAnon() ? NULL : $wgUser->getName(),
Index: trunk/phase3/RELEASE-NOTES
@@ -54,6 +54,7 @@
5555 * (bug 7691) Deletion log now shown when creating a new article, following
5656 MediaWiki:Noarticletext(anon) or MediaWiki:Newarticletext(anon).
5757 current user.
 58+* Added variables 'wgRestrictionEdit' and 'wgRestrictionMove' for JS to header
5859
5960 == Bugfixes since 1.10 ==
6061

Follow-up revisions

RevisionCommit summaryAuthorDate
r22717Merged revisions 22667-22715 via svnmerge from...david20:00, 4 June 2007

Status & tagging log