]> git.joonet.de Git - adminer.git/commitdiff
Fix plugin AdminerPrettyJsonColumn
authorJakub Vrana <jakub@vrana.cz>
Tue, 11 Mar 2025 17:16:44 +0000 (18:16 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 11 Mar 2025 17:16:44 +0000 (18:16 +0100)
plugins/pretty-json-column.php

index cf99bff80a3f03f2b1a31b304b5f8422953edb8e..bb8d8642de31e4a7614cf2edbcd81e1d0e35e86b 100644 (file)
@@ -3,13 +3,6 @@
 /** Pretty print JSON values in edit
 */
 class AdminerPrettyJsonColumn {
-       /** @var AdminerPlugin */
-       protected $adminer;
-
-       public function __construct($adminer) {
-               $this->adminer = $adminer;
-       }
-
        private function testJson($value) {
                if ((substr($value, 0, 1) == '{' || substr($value, 0, 1) == '[') && ($json = json_decode($value, true))) {
                        return $json;
@@ -33,6 +26,5 @@ class AdminerPrettyJsonColumn {
                                $value = json_encode($json);
                        }
                }
-               return $this->adminer->_callParent('processInput', array($field, $value, $function));
        }
 }