]> git.joonet.de Git - adminer.git/commitdiff
Compile: Fix pgsql (fix #956)
authorJakub Vrana <jakub@vrana.cz>
Wed, 26 Mar 2025 21:22:14 +0000 (22:22 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 26 Mar 2025 21:23:58 +0000 (22:23 +0100)
compile.php

index 24f98f5eca0f34538c9f0c00eeabd529be0856cb..7a8ac85c823436ca5c608678ef840225187702f2 100755 (executable)
@@ -219,7 +219,7 @@ function minify_js($file) {
        return lzw_compress($file);
 }
 
-function compile_file($match, $callback) { // $callback only to match signature
+function compile_file($match, $callback = '') { // $callback only to match signature
        global $project;
        $file = "";
        list(, $filenames, $callback) = $match;
@@ -278,7 +278,7 @@ if ($_SERVER["argv"][1]) {
 
 include __DIR__ . "/adminer/include/pdo.inc.php";
 include __DIR__ . "/adminer/include/driver.inc.php";
-$connection = new stdClass; // used in support()
+$connection = (object) array('flavor' => ''); // used in support()
 $features = array("check", "call" => "routine", "dump", "event", "privileges", "procedure" => "routine", "processlist", "routine", "scheme", "sequence", "sql", "status", "trigger", "type", "user" => "privileges", "variables", "view");
 $lang_ids = array(); // global variable simplifies usage in a callback function
 $file = file_get_contents(__DIR__ . "/$project/index.php");