From: Raimond Spekking Date: Thu, 24 Jan 2008 12:57:11 +0000 (+0000) Subject: * Sort elements by alphabet X-Git-Tag: 1.31.0-rc.0~49802 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=f9da6655f248e0d646f2f45af8ca7df7e8b194c3;p=lhc%2Fweb%2Fwiklou.git * Sort elements by alphabet * Consistent usage of XML functions --- diff --git a/includes/SpecialVersion.php b/includes/SpecialVersion.php index 501ba9a44b..76f6ec90d8 100644 --- a/includes/SpecialVersion.php +++ b/includes/SpecialVersion.php @@ -193,7 +193,7 @@ class SpecialVersion { foreach ($myWgHooks as $hook => $hooks) $ret .= "$hook" . $this->listToText( $hooks ) . "\n"; - $ret .= ''; + $ret .= Xml::closeElement( 'table' ); return $ret; } else return ''; @@ -232,6 +232,7 @@ class SpecialVersion { */ function listToText( $list ) { $cnt = count( $list ); + sort( $list ); if ( $cnt == 1 ) { // Enforce always returning a string