mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Bugtracker #4566 - Possible fix for cached comments on downloads
This commit is contained in:
parent
f4a7685f26
commit
ad157cec28
11
comment.php
11
comment.php
@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/comment.php,v $
|
||||
| $Revision: 1.7 $
|
||||
| $Date: 2008-09-23 19:44:08 $
|
||||
| $Revision: 1.8 $
|
||||
| $Date: 2008-11-05 21:17:50 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -402,12 +402,15 @@ if(isset($pref['trackbackEnabled']) && $pref['trackbackEnabled'] && $table == "n
|
||||
}
|
||||
}
|
||||
|
||||
if (!strstr(e_QUERY, "poll"))
|
||||
|
||||
//if (!strstr(e_QUERY, "poll"))
|
||||
// If output buffering started, cache the result
|
||||
if ($comment_ob_start)
|
||||
{
|
||||
$cache = ob_get_contents();
|
||||
$e107cache->set("comment.php?{$table}.{$field}", $cache);
|
||||
ob_end_flush(); // dump the buffer we started
|
||||
}
|
||||
if ($comment_ob_start) ob_end_flush(); // dump the buffer we started
|
||||
|
||||
|
||||
require_once(FOOTERF);
|
||||
|
Loading…
x
Reference in New Issue
Block a user