diff options
author | admin <devnull@localhost> | 2006-10-30 05:39:12 +0100 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-30 05:39:12 +0100 |
commit | 49439ff0a4deaac47e078c137216b0c410bd6ec4 (patch) | |
tree | 3e92faeba4204e1efd44a6ae86d32268bb1fc355 | |
parent | f3a6204bb0f4538d6a77d9c85c56545be73ecd64 (diff) |
-rw-r--r-- | system/application/config/config.php | 29 | ||||
-rw-r--r-- | system/codeigniter/Common.php | 6 | ||||
-rw-r--r-- | system/libraries/Config.php | 2 | ||||
-rw-r--r-- | system/libraries/Loader.php | 4 | ||||
-rw-r--r-- | system/libraries/Log.php | 2 | ||||
-rw-r--r-- | user_guide/installation/upgrade_150.html | 14 |
6 files changed, 33 insertions, 24 deletions
diff --git a/system/application/config/config.php b/system/application/config/config.php index fc4724010..3c3b423dc 100644 --- a/system/application/config/config.php +++ b/system/application/config/config.php @@ -144,29 +144,13 @@ $config['function_trigger'] = 'm'; /* |-------------------------------------------------------------------------- -| Error Logging -|-------------------------------------------------------------------------- -| -<<<<<<< .mine -| Options are "local" or "gmt". This pref tells the system whether to use -| your server's local time as the master "now" reference, or convert it to -| GMT. See the "date helper" page of the user guide for information -| regarding date handling. -| -*/ -$config['time_reference'] = 'local'; - -/* -|-------------------------------------------------------------------------- | Error Logging Threshold |-------------------------------------------------------------------------- | | If you have enabled error logging, you can set an error threshold to | determine what gets logged. Threshold options are: -======= | You can enable error logging by setting a threshold over zero. The | threshold determines what gets logged. Threshold options are: ->>>>>>> .r388 | | 0 = Disables logging | 0 = Error logging TURNED OFF @@ -302,4 +286,17 @@ $config['compress_output'] = FALSE; $config['time_reference'] = 'local'; +/* +|-------------------------------------------------------------------------- +| Rewrite PHP Short Tags +|-------------------------------------------------------------------------- +| +| If your PHP installation does not have short tag support enabled CI +| can rewrite the tags on-the-fly, enabling you to utilize that syntax +| in your view files. Options are TRUE or FALSE (boolean) +| +*/ +$config['rewrite_short_tags'] = FALSE; + + ?>
\ No newline at end of file diff --git a/system/codeigniter/Common.php b/system/codeigniter/Common.php index 06e922084..41e13bee6 100644 --- a/system/codeigniter/Common.php +++ b/system/codeigniter/Common.php @@ -127,7 +127,7 @@ function &get_config() * @access public * @return mixed */ -function &config_item($item) +function config_item($item) { static $config_item = array(); @@ -197,7 +197,7 @@ function log_message($level = 'error', $message, $php_error = FALSE) { static $LOG; - $config = get_config(); + $config =& get_config(); if ($config['log_threshold'] == 0) { return; @@ -247,7 +247,7 @@ function _exception_handler($severity, $message, $filepath, $line) } // Should we log the error? No? We're done... - $config = get_config(); + $config =& get_config(); if ($config['log_threshold'] == 0) { return; diff --git a/system/libraries/Config.php b/system/libraries/Config.php index c4ea9b4ee..28409fbc4 100644 --- a/system/libraries/Config.php +++ b/system/libraries/Config.php @@ -44,7 +44,7 @@ class CI_Config { */ function CI_Config() { - $this->config = get_config(); + $this->config =& get_config(); log_message('debug', "Config Class Initialized"); } diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php index 709d9fe3d..117626567 100644 --- a/system/libraries/Loader.php +++ b/system/libraries/Loader.php @@ -606,7 +606,7 @@ class CI_Loader { // do a little string replacement, changing the short tags // to standard PHP echo statements. - if ((bool) @ini_get('short_open_tag') === FALSE) + if ((bool) @ini_get('short_open_tag') === FALSE AND config_item('rewrite_short_tags') == TRUE) { echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($path))).'<?php '); } @@ -617,7 +617,7 @@ class CI_Loader { log_message('debug', 'File loaded: '.$path); - // Return the file data if requested to + // Return the file data if requested if ($return === TRUE) { $buffer = ob_get_contents(); diff --git a/system/libraries/Log.php b/system/libraries/Log.php index 03dc64005..b21096c50 100644 --- a/system/libraries/Log.php +++ b/system/libraries/Log.php @@ -42,7 +42,7 @@ class CI_Log { */ function CI_Log() { - $config = get_config(); + $config =& get_config(); $this->log_path = ($config['log_path'] != '') ? $config['log_path'] : BASEPATH.'logs/'; diff --git a/user_guide/installation/upgrade_150.html b/user_guide/installation/upgrade_150.html index 6ebc331d6..06d0c7027 100644 --- a/user_guide/installation/upgrade_150.html +++ b/user_guide/installation/upgrade_150.html @@ -101,7 +101,7 @@ $db['default']['cachedir'] = ''; <h2>Step 2: Update your config.php file</h2>
-<p>Open your <dfn>application/config/config.php</dfn> file and <kbd>ADD</kbd> this new item:</p>
+<p>Open your <dfn>application/config/config.php</dfn> file and <kbd>ADD</kbd> these new items:</p>
<pre>
/*
@@ -117,6 +117,18 @@ $db['default']['cachedir'] = ''; |
*/
$config['subclass_prefix'] = 'MY_';
+
+/*
+|--------------------------------------------------------------------------
+| Rewrite PHP Short Tags
+|--------------------------------------------------------------------------
+|
+| If your PHP installation does not have short tag support enabled CI
+| can rewrite the tags on-the-fly, enabling you to utilize that syntax
+| in your view files. Options are TRUE or FALSE (boolean)
+|
+*/
+$config['rewrite_short_tags'] = FALSE;
</pre>
<p>In that same file <kbd>REMOVE</kbd> this item:</p>
|