summaryrefslogtreecommitdiffstats
path: root/system/libraries/Loader.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-30 05:39:12 +0100
committeradmin <devnull@localhost>2006-10-30 05:39:12 +0100
commit49439ff0a4deaac47e078c137216b0c410bd6ec4 (patch)
tree3e92faeba4204e1efd44a6ae86d32268bb1fc355 /system/libraries/Loader.php
parentf3a6204bb0f4538d6a77d9c85c56545be73ecd64 (diff)
Diffstat (limited to 'system/libraries/Loader.php')
-rw-r--r--system/libraries/Loader.php4
1 files changed, 2 insertions, 2 deletions
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();