r12516 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12515‎ | r12516 | r12517 >
Date:15:12, 8 January 2006
Author:avar
Status:old
Tags:
Comment:
* (bug 4531) Show a list of parser extension tags
Modified paths:
  • /trunk/phase3/includes/SpecialVersion.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialVersion.php
@@ -5,6 +5,8 @@
66 * @package MediaWiki
77 * @subpackage SpecialPage
88 *
 9+ * @bug 4531
 10+ *
911 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
1012 * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
1113 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
@@ -91,7 +93,7 @@
9294 }
9395
9496 function extensionCredits() {
95 - global $wgExtensionCredits, $wgExtensionFunctions, $wgSkinExtensionFunction;
 97+ global $wgExtensionCredits, $wgExtensionFunctions, $wgParser, $wgSkinExtensionFunction;
9698
9799 if ( ! count( $wgExtensionCredits ) && ! count( $wgExtensionFunctions ) && ! count( $wgSkinExtensionFunction ) )
98100 return '';
@@ -130,6 +132,13 @@
131133 $out .= '***' . $this->langObj->listToText( $wgExtensionFunctions ) . "\n";
132134 }
133135
 136+ if ( $cnt = count( $tags = $wgParser->getTags() ) ) {
 137+ for ( $i = 0; $i < $cnt; ++$i )
 138+ $tags[$i] = "&lt;{$tags[$i]}&gt;";
 139+ $out .= "** Parser extension tags:\n";
 140+ $out .= '***' . $this->langObj->listToText( $tags ). "\n";
 141+ }
 142+
134143 if ( count( $wgSkinExtensionFunction ) ) {
135144 $out .= "** Skin extension functions:\n";
136145 $out .= '***' . $this->langObj->listToText( $wgSkinExtensionFunction ) . "\n";

Status & tagging log