Ran stylize.php. Required manual corrections:
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Wed, 7 Sep 2011 17:25:52 +0000 (17:25 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Wed, 7 Sep 2011 17:25:52 +0000 (17:25 +0000)
* $params[$index-1] was changed to $params[$index -1] instead of $params[$index - 1]
* ///!< @var string was changed to /// !< @var string, but should have remain unchanged.

includes/logging/LogEntry.php
includes/logging/LogFormatter.php

index 12f1b23..9ba66bc 100644 (file)
@@ -122,7 +122,7 @@ class DatabaseLogEntry extends LogEntryBase {
                $fields = array(
                        'log_id', 'log_type', 'log_action', 'log_timestamp',
                        'log_user', 'log_user_text',
-                       'log_namespace', 'log_title', //unused log_page
+                       'log_namespace', 'log_title', // unused log_page
                        'log_comment', 'log_params', 'log_deleted',
                        'user_id', 'user_name', 'user_editcount',
                );
@@ -319,7 +319,7 @@ class ManualLogEntry extends LogEntryBase {
        }
 
        /**
-        * Set extra log parameters. 
+        * Set extra log parameters.
         * You can pass params to the log action message
         * by prefixing the keys with a number and colon.
         * The numbering should start with number 4, the
index 6f7cb3a..e9b01ef 100644 (file)
@@ -171,7 +171,7 @@ class LogFormatter {
 
                if ( $entry->isLegacy() ) {
                        foreach ( $entry->getParameters() as $index => $value ) {
-                               $params[$index+3] = $value;
+                               $params[$index + 3] = $value;
                        }
                }
 
@@ -179,7 +179,7 @@ class LogFormatter {
                foreach ( $entry->getParameters() as $key => $value ) {
                        if ( strpos( $key, ':' ) === false ) continue;
                        list( $index, $type, $name ) = explode( ':', $key, 3 );
-                       $params[$index-1] = $value;
+                       $params[$index - 1] = $value;
                }
 
                /* Message class doesn't like non consecutive numbering.