aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--application/config/ConfigPhp.php3
-rw-r--r--index.php2
2 files changed, 2 insertions, 3 deletions
diff --git a/application/config/ConfigPhp.php b/application/config/ConfigPhp.php
index 19fecf2b..f99073af 100644
--- a/application/config/ConfigPhp.php
+++ b/application/config/ConfigPhp.php
@@ -66,9 +66,6 @@ class ConfigPhp implements ConfigIO
66 } 66 }
67 } 67 }
68 68
69 // FIXME!
70 //$configStr .= 'date_default_timezone_set('.var_export($conf['timezone'], true).');'. PHP_EOL;
71
72 if (!file_put_contents($filepath, $configStr) 69 if (!file_put_contents($filepath, $configStr)
73 || strcmp(file_get_contents($filepath), $configStr) != 0 70 || strcmp(file_get_contents($filepath), $configStr) != 0
74 ) { 71 ) {
diff --git a/index.php b/index.php
index 780dc581..aad65559 100644
--- a/index.php
+++ b/index.php
@@ -113,6 +113,8 @@ RainTPL::$cache_dir = $conf->get('config.RAINTPL_TMP'); // cache directory
113$pluginManager = PluginManager::getInstance(); 113$pluginManager = PluginManager::getInstance();
114$pluginManager->load($conf->get('config.ENABLED_PLUGINS')); 114$pluginManager->load($conf->get('config.ENABLED_PLUGINS'));
115 115
116date_default_timezone_set($conf->get('timezone', 'UTC'));
117
116ob_start(); // Output buffering for the page cache. 118ob_start(); // Output buffering for the page cache.
117 119
118// In case stupid admin has left magic_quotes enabled in php.ini: 120// In case stupid admin has left magic_quotes enabled in php.ini: