* Sort elements by alphabet
authorRaimond Spekking <raymond@users.mediawiki.org>
Thu, 24 Jan 2008 12:57:11 +0000 (12:57 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Thu, 24 Jan 2008 12:57:11 +0000 (12:57 +0000)
* Consistent usage of XML functions

includes/SpecialVersion.php

index 501ba9a..76f6ec9 100644 (file)
@@ -193,7 +193,7 @@ class SpecialVersion {
                        foreach ($myWgHooks as $hook => $hooks)
                                $ret .= "<tr><td>$hook</td><td>" . $this->listToText( $hooks ) . "</td></tr>\n";
 
-                       $ret .= '</table>';
+                       $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