| @@ 827-834 (lines=8) @@ | ||
| 824 | // do a little string replacement, changing the short tags |
|
| 825 | // to standard PHP echo statements. |
|
| 826 | ||
| 827 | if ((bool)@ini_get('short_open_tag') === FALSE AND config_item('rewrite_short_tags') == TRUE) |
|
| 828 | { |
|
| 829 | echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path)))); |
|
| 830 | } else |
|
| 831 | { |
|
| 832 | include($_ci_path); // include() vs include_once() allows for multiple views with the same name |
|
| 833 | } |
|
| 834 | ||
| 835 | log_message('debug', 'File loaded: '.$_ci_path); |
|
| 836 | ||
| 837 | // Return the file data if requested |
|
| @@ 336-340 (lines=5) @@ | ||
| 333 | ||
| 334 | ob_start(); |
|
| 335 | ||
| 336 | if ((bool)@ini_get('short_open_tag') === FALSE AND CI::$APP->config->item('rewrite_short_tags') == TRUE) {
|
|
| 337 | echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
|
|
| 338 | } else {
|
|
| 339 | include($_ci_path); |
|
| 340 | } |
|
| 341 | ||
| 342 | log_message('debug', 'File loaded: '.$_ci_path);
|
|
| 343 | ||