# HG changeset patch # User Matti Hamalainen # Date 1429207475 -10800 # Node ID 2233bdad4ab502a374ca6d7700010894439a2938 # Parent 023f5d0f627e140e487b8fa9dda53fb016de424a Die if GD extension is not available as we require it. diff -r 023f5d0f627e -r 2233bdad4ab5 tools/makegmaps.php --- a/tools/makegmaps.php Thu Apr 16 21:04:23 2015 +0300 +++ b/tools/makegmaps.php Thu Apr 16 21:04:35 2015 +0300 @@ -4,6 +4,9 @@ if (php_sapi_name() != "cli" || !empty($_SERVER["REMOTE_ADDR"])) die("You can only run this script as a commandline application.\n"); +if (!extension_loaded("gd")) + die("ERROR: The required GD extension to PHP was not found or enabled.\n"); + $gmapsConfig = "config.php";