Index: trunk/extensions/HideNamespace/HideNamespace.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | |
4 | 4 | /** |
5 | 5 | * 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 |
7 | 7 | * |
8 | 8 | * @file |
9 | 9 | * @ingroup Extensions |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | private static $forceHide = false, $forceShow = false; |
48 | 48 | |
49 | 49 | /** |
50 | | - * Register our parser functions. |
| 50 | + * Register our parser functions |
51 | 51 | */ |
52 | 52 | function registerParser( &$parser ) { |
53 | 53 | $parser->setFunctionHook( 'hidens', array( &$this, 'hideNs' ) ); |
— | — | @@ -56,8 +56,9 @@ |
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
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 |
62 | 63 | */ |
63 | 64 | function hideNs( &$parser ) { |
64 | 65 | self::$forceHide = true; |
— | — | @@ -66,8 +67,9 @@ |
67 | 68 | } |
68 | 69 | |
69 | 70 | /** |
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 |
72 | 74 | */ |
73 | 75 | function showNs( &$parser ) { |
74 | 76 | self::$forceShow = true; |
— | — | @@ -77,7 +79,9 @@ |
78 | 80 | |
79 | 81 | /** |
80 | 82 | * 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 |
82 | 86 | */ |
83 | 87 | function onArticleViewHeader( $article, $outputDone, $enableParserCcache ) { |
84 | 88 | self::$namespace = $article->mTitle->mNamespace; |
— | — | @@ -93,8 +97,9 @@ |
94 | 98 | } |
95 | 99 | |
96 | 100 | /** |
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 |
99 | 104 | */ |
100 | 105 | function onBeforePageDisplay( &$out, $skin ) { |
101 | 106 | if( self::$namespace === NS_MAIN ) |