diff --git a/Smarty.class.php b/Smarty.class.php index 1110eaf2..7199fadf 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -270,7 +270,7 @@ class Smarty $results = $this->_read_file($cache_file); $results = $this->_process_cached_inserts($results); if ($display) { - print $results; + echo $results; return; } else return $results; @@ -301,7 +301,7 @@ class Smarty } if ($display) { - print $results; + echo $results; return; } else return $results; @@ -541,7 +541,7 @@ class Smarty preg_match('!^%\w+\.\w+%(?>\|@?\w+(:(' . $qstr_regexp . '|[^|]+))?)*$!', $tag_command)) { // or a section property settype($tag_command, 'array'); $this->_parse_vars_props($tag_command); - return ""; + return ""; } switch ($tag_command) { @@ -637,7 +637,7 @@ class Smarty $arg_list[] = "'$arg_name' => $arg_value"; } - return ""; + return ""; } function _compile_config_load_tag($tag_args) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 1110eaf2..7199fadf 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -270,7 +270,7 @@ class Smarty $results = $this->_read_file($cache_file); $results = $this->_process_cached_inserts($results); if ($display) { - print $results; + echo $results; return; } else return $results; @@ -301,7 +301,7 @@ class Smarty } if ($display) { - print $results; + echo $results; return; } else return $results; @@ -541,7 +541,7 @@ class Smarty preg_match('!^%\w+\.\w+%(?>\|@?\w+(:(' . $qstr_regexp . '|[^|]+))?)*$!', $tag_command)) { // or a section property settype($tag_command, 'array'); $this->_parse_vars_props($tag_command); - return ""; + return ""; } switch ($tag_command) { @@ -637,7 +637,7 @@ class Smarty $arg_list[] = "'$arg_name' => $arg_value"; } - return ""; + return ""; } function _compile_config_load_tag($tag_args)