From 3d20abcdf0874e831f64811a81f10b5610e8cda3 Mon Sep 17 00:00:00 2001 From: Chris Kelly Date: Wed, 5 Nov 2008 22:20:58 +0000 Subject: move short_open_tag setting from .htaccess to ini_set because it works more often and fails more gracefully --- .htaccess | 1 - index.php | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 .htaccess diff --git a/.htaccess b/.htaccess deleted file mode 100644 index 9722ff7c..00000000 --- a/.htaccess +++ /dev/null @@ -1 +0,0 @@ -php_flag short_open_tag on diff --git a/index.php b/index.php index 9d278e62..cbbcc032 100644 --- a/index.php +++ b/index.php @@ -30,6 +30,9 @@ error_reporting(E_ALL); // and logging. You can turn off Kohana errors in application/config/config.php ini_set('display_errors', true); +// Enable short open tags to make our theme templates work +ini_set('short_open_tag', 1); + define('EXT', '.php'); define('DOCROOT', getcwd().DIRECTORY_SEPARATOR); @@ -57,4 +60,4 @@ if (PHP_SAPI == 'cli') { } // Initialize. -require SYSPATH . 'core/Bootstrap' . EXT; \ No newline at end of file +require SYSPATH . 'core/Bootstrap' . EXT; -- cgit v1.2.3