]> git.joonet.de Git - adminer.git/commitdiff
Declare global variables to allow including from inside a function
authorJakub Vrana <jakub@vrana.cz>
Wed, 15 Dec 2010 16:41:04 +0000 (17:41 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 15 Dec 2010 16:41:04 +0000 (17:41 +0100)
adminer/include/bootstrap.inc.php

index 709668595a0302c071678e477f925926e4ef7060..f141bd40ce1f68ffec4ae71f2d2b3b5c3273aed4 100644 (file)
@@ -21,6 +21,7 @@ if (isset($_GET["file"])) {
 
 include "../adminer/include/functions.inc.php";
 
+global $adminer, $connection, $drivers, $edit_functions, $enum_length, $error, $functions, $grouping, $HTTPS, $inout, $jush, $LANG, $langs, $on_actions, $structured_types, $token, $translations, $types, $unsigned, $VERSION;
 if (!isset($_SERVER["REQUEST_URI"])) {
        $_SERVER["REQUEST_URI"] = $_SERVER["ORIG_PATH_INFO"] . ($_SERVER["QUERY_STRING"] != "" ? "?$_SERVER[QUERY_STRING]" : ""); // IIS 5 compatibility
 }