Drop JSON support. It was never used and causes problems like bug 30854 since PHP...
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 14 Sep 2011 07:47:32 +0000 (07:47 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 14 Sep 2011 07:47:32 +0000 (07:47 +0000)
It was not a good idea to autodetection of the format anyway, but it isn't such a problem with unserialize.

includes/logging/LogEntry.php

index 315a0ca..7fd268e 100644 (file)
@@ -210,14 +210,8 @@ class DatabaseLogEntry extends LogEntryBase {
                                $this->params = $params;
                                $this->legacy = false;
                        } else {
-                               $params = FormatJson::decode( $blob, true /* array */ );
-                               if ( $params !== null ) {
-                                       $this->params = $params;
-                                       $this->legacy = false;
-                               } else {
-                                       $this->params = $blob === '' ? array() : explode( "\n", $blob );
-                                       $this->legacy = true;
-                               }
+                               $this->params = $blob === '' ? array() : explode( "\n", $blob );
+                               $this->legacy = true;
                        }
                }
                return $this->params;