Follow-up to r56324 per IRC comments by Nikerabbit: coding style updated
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Mon, 14 Sep 2009 19:56:22 +0000 (19:56 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Mon, 14 Sep 2009 19:56:22 +0000 (19:56 +0000)
includes/LogEventsList.php

index d70a4da..700c140 100644 (file)
@@ -593,11 +593,11 @@ class LogEventsList {
                        if ( $msgKey ) {
                                $s = '<div class="mw-warning-with-logexcerpt">';
 
-                               if ( sizeof( $msgKey ) == 1 ) {
+                               if ( count( $msgKey ) == 1 ) {
                                        $s .= wfMsgExt( $msgKey[0], array('parse') );
                                } else { // Process additional arguments
                                        $args = $msgKey;
-                                       unset( $args[0] );
+                                       array_shift( $args );
                                        $s .= wfMsgExt( $msgKey[0], array('parse'), $args );
                                }
                        }