summaryrefslogtreecommitdiffstats
path: root/system/libraries/Loader.php
diff options
context:
space:
mode:
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();