diff options
| author | Jams H Thompson <jht001@users.sourceforge.net> | 2008-03-23 10:59:50 +0000 |
|---|---|---|
| committer | Jams H Thompson <jht001@users.sourceforge.net> | 2008-03-23 10:59:50 +0000 |
| commit | 04235bae3559d95cc9a4b25926d36a1a41b82163 (patch) | |
| tree | 97a4e2ce7b727d6279b6d32c93bf0a0f71009b60 /content_history_inc.php | |
| parent | 511bdfdbda0e6d1e077ab78d4084db7b68f4df34 (diff) | |
| download | liberty-04235bae3559d95cc9a4b25926d36a1a41b82163.tar.gz liberty-04235bae3559d95cc9a4b25926d36a1a41b82163.tar.bz2 liberty-04235bae3559d95cc9a4b25926d36a1a41b82163.zip | |
make page_id available to templates on preview
Diffstat (limited to 'content_history_inc.php')
| -rw-r--r-- | content_history_inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content_history_inc.php b/content_history_inc.php index 25a6887..deabce3 100644 --- a/content_history_inc.php +++ b/content_history_inc.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.12 $ + * @version $Revision: 1.13 $ * @package liberty * @subpackage functions */ @@ -29,6 +29,7 @@ if( isset( $_REQUEST["delete"] ) && isset( $_REQUEST["hist"] )) { } elseif( @BitBase::verifyId( $_REQUEST["preview"] )) { if( $version = $gContent->getHistory( $_REQUEST["preview"] )) { $version['data'][0]['parsed_data'] = $gContent->parseData( $version["data"][0] ); + $version['data'][0]['page_id'] = $gContent->mInfo['page_id']; $gBitSmarty->assign_by_ref( $smartyContentRef, $version['data'][0] ); $gBitSmarty->assign_by_ref( 'version', $_REQUEST["preview"] ); } |
