summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-08-06 20:38:42 -0700
committerBharat Mediratta <bharat@menalto.com>2009-08-06 20:38:42 -0700
commit87598288f493cadcc5c273dd7305ad579d251678 (patch)
treeccefce2630bdac3cf294b0f43805553da7dcf616 /index.php
parentb826182b7a7b2d630b478d3e2bcf0628989a92d9 (diff)
If we fail the version check, at least show the version of PHP that the server is using.
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index 7def7d16..d0e12cfc 100644
--- a/index.php
+++ b/index.php
@@ -21,7 +21,8 @@
define("IN_PRODUCTION", true);
// Gallery requires PHP 5.2+
-version_compare(PHP_VERSION, "5.2.3", "<") and exit("Gallery requires PHP 5.2.3 or newer.");
+version_compare(PHP_VERSION, "5.2.3", "<") and
+ exit("Gallery requires PHP 5.2.3 or newer (you're using " . PHP_VERSION . ")");
// Gallery requires short_tags to be on
!ini_get("short_open_tag") and exit("Gallery requires short_open_tag to be on.");