summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-10 16:36:08 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-10 16:36:08 +0000
commit92b1ae14f971434b6a9aebe817071b16f1fb1aae (patch)
treecca5c2a84bd592a81e58c7a443c4920d3a4a8a7c /index.php
parent7a1b2b0ca7dc10c69f58f3f53e6d8d1c1039db77 (diff)
Require short_open_tag to be enabled, or die.
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.php b/index.php
index 1007767a..43889cfc 100644
--- a/index.php
+++ b/index.php
@@ -23,6 +23,9 @@ define('IN_PRODUCTION', true);
// Gallery requires PHP 5.2+
version_compare(PHP_VERSION, '5.2', '<') and exit('Gallery requires PHP 5.2 or newer.');
+// Gallery requires short_tags to be on
+!ini_get('short_open_tag') and exit('Gallery requires short_open_tag to be on.');
+
// Set the error reporting level. Use E_ALL unless you have a special need.
error_reporting(E_ALL);