Skip to content

Commit

Permalink
- revert output buffer flushing on display, echo content again becaus…
Browse files Browse the repository at this point in the history
…e possible problems when PHP files had

    characters (newline} after ?> at file end #187
  • Loading branch information
uwetews committed Feb 19, 2016
1 parent 0735ff9 commit 3e463c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
 ===== 3.1.30-dev ===== (xx.xx.xx)
19.02.2016
- revert output buffer flushing on display, echo content again because possible problems when PHP files had
characters (newline} after ?> at file end https://github.com/smarty-php/smarty/issues/187

14.02.2016
- new tag {make_nocache} read NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/110
- optimization of sub-template processing
Expand Down
2 changes: 1 addition & 1 deletion libs/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.30-dev/44';
const SMARTY_VERSION = '3.1.30-dev/45';

/**
* define variable scopes
Expand Down
3 changes: 1 addition & 2 deletions libs/sysplugins/smarty_internal_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ public function render($no_output_filter = true, $display = null)
) {
echo $this->smarty->ext->_filterHandler->runFilter('output', ob_get_clean(), $this);
} else {
ob_end_flush();
flush();
echo ob_get_clean();
}
}
if ($this->smarty->debugging) {
Expand Down

0 comments on commit 3e463c1

Please sign in to comment.