r75448 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75447‎ | r75448 | r75449 >
Date:17:31, 26 October 2010
Author:mgrabovsky
Status:deferred
Tags:
Comment:
Documentation tweaks
Modified paths:
  • /trunk/extensions/HideNamespace/HideNamespace.php (modified) (history)

Diff [purge]

Index: trunk/extensions/HideNamespace/HideNamespace.php
@@ -2,7 +2,7 @@
33
44 /**
55 * Extension HideNamespace - Hides namespace in the header and title when a page is in specified namespace
6 - * or when the {{#hidens:}} parser function is called.
 6+ * or when the {{#hidens:}} parser function is called
77 *
88 * @file
99 * @ingroup Extensions
@@ -46,7 +46,7 @@
4747 private static $forceHide = false, $forceShow = false;
4848
4949 /**
50 - * Register our parser functions.
 50+ * Register our parser functions
5151 */
5252 function registerParser( &$parser ) {
5353 $parser->setFunctionHook( 'hidens', array( &$this, 'hideNs' ) );
@@ -56,8 +56,9 @@
5757 }
5858
5959 /**
60 - * Callback for our parser function {{#hidens:}}.
61 - * Force to hide the namespace.
 60+ * Callback for our parser function {{#hidens:}}
 61+ *
 62+ * Force to hide the namespace
6263 */
6364 function hideNs( &$parser ) {
6465 self::$forceHide = true;
@@ -66,8 +67,9 @@
6768 }
6869
6970 /**
70 - * Callback for our parser function {{#showns:}}.
71 - * Force to show the namespace.
 71+ * Callback for our parser function {{#showns:}}
 72+ *
 73+ * Force to show the namespace
7274 */
7375 function showNs( &$parser ) {
7476 self::$forceShow = true;
@@ -77,7 +79,9 @@
7880
7981 /**
8082 * Callback for the ArticleViewHeader hook.
81 - * Saves namespace identifier and localized namespace name to the $namespace and $namespaceL10n variables.
 83+ *
 84+ * Saves namespace identifier and localized namespace name to the $namespace and
 85+ * $namespaceL10n variables
8286 */
8387 function onArticleViewHeader( $article, $outputDone, $enableParserCcache ) {
8488 self::$namespace = $article->mTitle->mNamespace;
@@ -93,8 +97,9 @@
9498 }
9599
96100 /**
97 - * Callback for the OutputPageBeforeHTML hook.
98 - * "Hides" the namespace in the header and in title.
 101+ * Callback for the OutputPageBeforeHTML hook
 102+ *
 103+ * "Hides" the namespace in the header and in title
99104 */
100105 function onBeforePageDisplay( &$out, $skin ) {
101106 if( self::$namespace === NS_MAIN )

Status & tagging log