From a63b0e8e8ba94288169aa673f3319711fc097b61 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 6 Jun 2010 19:04:15 -0700 Subject: Whitespace fixes --- installer/installer.php | 62 ++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'installer') diff --git a/installer/installer.php b/installer/installer.php index bd5fbff1..f9fd8827 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -187,45 +187,45 @@ class installer { } static function check_environment() { - if (!function_exists("mysql_query") && !function_exists("mysqli_set_charset")) { - $errors[] = "Gallery 3 requires a MySQL database, but PHP doesn't have either the MySQL or the MySQLi extension."; - } + if (!function_exists("mysql_query") && !function_exists("mysqli_set_charset")) { + $errors[] = "Gallery 3 requires a MySQL database, but PHP doesn't have either the MySQL or the MySQLi extension."; + } - if (!@preg_match("/^.$/u", utf8_encode("\xF1"))) { - $errors[] = "PHP is missing Perl-Compatible Regular Expression support."; - } + if (!@preg_match("/^.$/u", utf8_encode("\xF1"))) { + $errors[] = "PHP is missing Perl-Compatible Regular Expression support."; + } - if (!(function_exists("spl_autoload_register"))) { - $errors[] = "PHP is missing Standard PHP Library (SPL) support"; - } + if (!(function_exists("spl_autoload_register"))) { + $errors[] = "PHP is missing Standard PHP Library (SPL) support"; + } - if (!(class_exists("ReflectionClass"))) { - $errors[] = "PHP is missing reflection support"; - } + if (!(class_exists("ReflectionClass"))) { + $errors[] = "PHP is missing reflection support"; + } - if (!(function_exists("filter_list"))) { - $errors[] = "PHP is missing the filter extension"; - } + if (!(function_exists("filter_list"))) { + $errors[] = "PHP is missing the filter extension"; + } - if (!(extension_loaded("iconv"))) { - $errors[] = "PHP is missing the iconv extension"; - } + if (!(extension_loaded("iconv"))) { + $errors[] = "PHP is missing the iconv extension"; + } - if (!(extension_loaded("simplexml"))) { - $errors[] = "PHP is missing the SimpleXML extension"; - } + if (!(extension_loaded("simplexml"))) { + $errors[] = "PHP is missing the SimpleXML extension"; + } - if (!extension_loaded("mbstring")) { - $errors[] = "PHP is missing the mbstring extension"; - } else if (ini_get("mbstring.func_overload") & MB_OVERLOAD_STRING) { - $errors[] = "The mbstring extension is overloading PHP's native string functions. Please disable it."; - } + if (!extension_loaded("mbstring")) { + $errors[] = "PHP is missing the mbstring extension"; + } else if (ini_get("mbstring.func_overload") & MB_OVERLOAD_STRING) { + $errors[] = "The mbstring extension is overloading PHP's native string functions. Please disable it."; + } - if (!function_exists("json_encode")) { - $errors[] = "PHP is missing the JavaScript Object Notation (JSON) extension. Please install it."; - } + if (!function_exists("json_encode")) { + $errors[] = "PHP is missing the JavaScript Object Notation (JSON) extension. Please install it."; + } - return @$errors; -} + return @$errors; + } } -- cgit v1.2.3 From c31e9f1188934d0515210c6c0c4b6bb23ca437f0 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 6 Jun 2010 19:06:24 -0700 Subject: Add a check for short_open_tag --- installer/installer.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'installer') diff --git a/installer/installer.php b/installer/installer.php index f9fd8827..53a5e3db 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -225,6 +225,10 @@ class installer { $errors[] = "PHP is missing the JavaScript Object Notation (JSON) extension. Please install it."; } + if (!ini_get("short_open_tag")) { + $errors[] = "Gallery requires short_open_tag to be on. Please enable it in your php.ini."; + } + return @$errors; } -- cgit v1.2.3