r20754 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r20753‎ | r20754 | r20755 >
Date:21:15, 27 March 2007
Author:robchurch
Status:old
Tags:
Comment:
(bug 8421) Expose current action in JavaScript globals (as 'wgAction')
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/includes/Skin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/DefaultSettings.php
@@ -1117,7 +1117,7 @@
11181118 * to ensure that client-side caches don't keep obsolete copies of global
11191119 * styles.
11201120 */
1121 -$wgStyleVersion = '61';
 1121+$wgStyleVersion = '62';
11221122
11231123
11241124 # Server-side caching:
Index: trunk/phase3/includes/Skin.php
@@ -295,7 +295,7 @@
296296 global $wgStylePath, $wgUser;
297297 global $wgArticlePath, $wgScriptPath, $wgServer, $wgContLang, $wgLang;
298298 global $wgTitle, $wgCanonicalNamespaceNames, $wgOut, $wgArticle;
299 - global $wgBreakFrames;
 299+ global $wgBreakFrames, $wgRequest;
300300
301301 $ns = $wgTitle->getNamespace();
302302 $nsname = isset( $wgCanonicalNamespaceNames[ $ns ] ) ? $wgCanonicalNamespaceNames[ $ns ] : $wgTitle->getNsText();
@@ -311,6 +311,7 @@
312312 'wgNamespaceNumber' => $wgTitle->getNamespace(),
313313 'wgPageName' => $wgTitle->getPrefixedDBKey(),
314314 'wgTitle' => $wgTitle->getText(),
 315+ 'wgAction' => $wgRequest->getText( 'action', 'view' ),
315316 'wgArticleId' => $wgTitle->getArticleId(),
316317 'wgIsArticle' => $wgOut->isArticle(),
317318 'wgUserName' => $wgUser->isAnon() ? NULL : $wgUser->getName(),
Index: trunk/phase3/RELEASE-NOTES
@@ -105,6 +105,7 @@
106106 for more information
107107 * (bug 9397) Introduce "sp-contributions-footer" and "sp-contributions-footer-anon"
108108 messages, shown at the end of Special:Contributions as appropriate for the target
 109+* (bug 8421) Expose current action in JavaScript globals (as 'wgAction')
109110
110111 == Bugfixes since 1.9 ==
111112 * (bug 7292) Fix site statistics when moving pages in/out of content namespaces