mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 06:37:33 +02:00
Compile: Fix pgsql (fix #956)
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user