]> git.joonet.de Git - adminer.git/commitdiff
Document that Elasticsearch requires allow_url_fopen
authorJakub Vrana <jakub@vrana.cz>
Fri, 4 May 2018 13:24:01 +0000 (15:24 +0200)
committerJakub Vrana <jakub@vrana.cz>
Fri, 4 May 2018 13:26:57 +0000 (15:26 +0200)
adminer/drivers/elastic.inc.php

index 00f325ac3abfd3e1dd91817e2649f5400ba408b4..e0dcbe0cc2271f9bccd709f7e1e1d7e511c90818 100644 (file)
@@ -2,10 +2,10 @@
 $drivers["elastic"] = "Elasticsearch (beta)";
 
 if (isset($_GET["elastic"])) {
-       $possible_drivers = array("json");
+       $possible_drivers = array("json + allow_url_fopen");
        define("DRIVER", "elastic");
 
-       if (function_exists('json_decode')) {
+       if (function_exists('json_decode') && ini_bool('allow_url_fopen')) {
                class Min_DB {
                        var $extension = "JSON", $server_info, $errno, $error, $_url;