From 04235bae3559d95cc9a4b25926d36a1a41b82163 Mon Sep 17 00:00:00 2001 From: Jams H Thompson Date: Sun, 23 Mar 2008 10:59:50 +0000 Subject: make page_id available to templates on preview --- content_history_inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ 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"] ); } -- cgit v1.3