diff --git a/compile.php b/compile.php index 24f98f5e..7a8ac85c 100755 --- a/compile.php +++ b/compile.php @@ -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");