Index: trunk/phase3/includes/Skin.php |
— | — | @@ -300,7 +300,7 @@ |
301 | 301 | |
302 | 302 | $ns = $wgTitle->getNamespace(); |
303 | 303 | $nsname = isset( $wgCanonicalNamespaceNames[ $ns ] ) ? $wgCanonicalNamespaceNames[ $ns ] : $wgTitle->getNsText(); |
304 | | - |
| 304 | + |
305 | 305 | $vars = array( |
306 | 306 | 'skin' => $data['skinname'], |
307 | 307 | 'stylepath' => $wgStylePath, |
— | — | @@ -313,6 +313,8 @@ |
314 | 314 | 'wgPageName' => $wgTitle->getPrefixedDBKey(), |
315 | 315 | 'wgTitle' => $wgTitle->getText(), |
316 | 316 | 'wgAction' => $wgRequest->getText( 'action', 'view' ), |
| 317 | + 'wgRestrictionEdit' => $wgTitle->getRestrictions( 'edit' ), |
| 318 | + 'wgRestrictionMove' => $wgTitle->getRestrictions( 'move' ), |
317 | 319 | 'wgArticleId' => $wgTitle->getArticleId(), |
318 | 320 | 'wgIsArticle' => $wgOut->isArticle(), |
319 | 321 | 'wgUserName' => $wgUser->isAnon() ? NULL : $wgUser->getName(), |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -54,6 +54,7 @@ |
55 | 55 | * (bug 7691) Deletion log now shown when creating a new article, following |
56 | 56 | MediaWiki:Noarticletext(anon) or MediaWiki:Newarticletext(anon). |
57 | 57 | current user. |
| 58 | +* Added variables 'wgRestrictionEdit' and 'wgRestrictionMove' for JS to header |
58 | 59 | |
59 | 60 | == Bugfixes since 1.10 == |
60 | 61 | |