From f9da6655f248e0d646f2f45af8ca7df7e8b194c3 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Thu, 24 Jan 2008 12:57:11 +0000 Subject: [PATCH] * Sort elements by alphabet * Consistent usage of XML functions --- includes/SpecialVersion.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.20.1