diff options
| author | wjames5 <will@tekimaki.com> | 2008-06-30 19:14:12 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-06-30 19:14:12 +0000 |
| commit | 44a21f236287e7b0dd6e481583374cf6258250f4 (patch) | |
| tree | dab7bfbcc827dc1125eca1ccf43c403a231c720e /content_history_inc.php | |
| parent | 4130bd6730bf177ee9646ddb903fad23e335b926 (diff) | |
| download | liberty-44a21f236287e7b0dd6e481583374cf6258250f4.tar.gz liberty-44a21f236287e7b0dd6e481583374cf6258250f4.tar.bz2 liberty-44a21f236287e7b0dd6e481583374cf6258250f4.zip | |
when parsing historical data make sure no_cache is set
Diffstat (limited to 'content_history_inc.php')
| -rw-r--r-- | content_history_inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/content_history_inc.php b/content_history_inc.php index 13a0c60..258a0b3 100644 --- a/content_history_inc.php +++ b/content_history_inc.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.16 $ + * @version $Revision: 1.17 $ * @package liberty * @subpackage functions */ @@ -28,6 +28,7 @@ if( isset( $_REQUEST["delete"] ) && isset( $_REQUEST["hist"] )) { } elseif( @BitBase::verifyId( $_REQUEST["preview"] )) { if( $version = $gContent->getHistory( $_REQUEST["preview"] )) { + $version['data'][0]['no_cache'] = TRUE; $version['data'][0]['parsed_data'] = $gContent->parseData( $version["data"][0] ); $gBitSmarty->assign_by_ref( $smartyContentRef, $version['data'][0] ); $gBitSmarty->assign_by_ref( 'version', $_REQUEST["preview"] ); @@ -67,8 +68,9 @@ if( isset( $_REQUEST["delete"] ) && isset( $_REQUEST["hist"] )) { } elseif( @BitBase::verifyId( $_REQUEST["compare"] )) { $from_version = $_REQUEST["compare"]; $from_page = $gContent->getHistory( $from_version ); + $from_page['data'][0]['no_cache'] = TRUE; $gBitSmarty->assign( 'compare', 'y' ); - $gBitSmarty->assign_by_ref( 'diff_from', $gContent->parseData( $from_page["data"][0] )); + $gBitSmarty->assign_by_ref( 'diff_from', $gContent->parseData( $from_page['data'][0] ) ); $gBitSmarty->assign_by_ref( 'diff_to', $gContent->parseData() ); $gBitSmarty->assign_by_ref( 'version_from', $from_version ); |
