summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
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);