From: Ævar Arnfjörð Bjarmason Date: Sun, 23 Oct 2005 19:53:27 +0000 (+0000) Subject: * Renamed the $extensionTypes hook to be unambiguous X-Git-Tag: 1.6.0~1342 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=9e65f5bf2a62ba3d145bead702a340a16a7f4377;p=lhc%2Fweb%2Fwiklou.git * Renamed the $extensionTypes hook to be unambiguous * whitespace --- diff --git a/includes/SpecialVersion.php b/includes/SpecialVersion.php index a249a59cb4..5005f00f13 100644 --- a/includes/SpecialVersion.php +++ b/includes/SpecialVersion.php @@ -86,8 +86,7 @@ class SpecialVersion { 'parserhook' => 'Parser hooks', 'other' => 'Other', ); - - wfRunHooks( 'ExtensionTypes', array( &$extensionTypes ) ); + wfRunHooks( 'SpecialVersionExtensionTypes', array( &$extensionTypes ) ); $out = "\n* Extensions:\n"; foreach ( $extensionTypes as $type => $text ) { @@ -144,16 +143,13 @@ class SpecialVersion { global $wgHooks; $ret = "* Hooks:\n"; - - foreach ($wgHooks as $hook => $hooks) { + foreach ($wgHooks as $hook => $hooks) $ret .= "** $hook: " . $this->langObj->listToText( $hooks ) . "\n"; - } return $ret; } function IPInfo() { - $ip = str_replace( '--', ' - - ', htmlspecialchars( wfGetIP() ) ); return "\n"; }