summaryrefslogtreecommitdiff
path: root/page_history.php
diff options
context:
space:
mode:
authorJams H Thompson <jht001@users.sourceforge.net>2007-11-20 10:02:18 +0000
committerJams H Thompson <jht001@users.sourceforge.net>2007-11-20 10:02:18 +0000
commitfcf8dac8a9e43f7c7b97fd67094ad6748f7c3d72 (patch)
treecbe1b9b096951ecde1cfe8a0e40b6325277152e8 /page_history.php
parent049a40b47819a4ea9f144797055cf787976dc840 (diff)
downloadwiki-fcf8dac8a9e43f7c7b97fd67094ad6748f7c3d72.tar.gz
wiki-fcf8dac8a9e43f7c7b97fd67094ad6748f7c3d72.tar.bz2
wiki-fcf8dac8a9e43f7c7b97fd67094ad6748f7c3d72.zip
support for rollback preview in templates
Diffstat (limited to 'page_history.php')
-rw-r--r--page_history.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/page_history.php b/page_history.php
index ac1c15f..ba0ea83 100644
--- a/page_history.php
+++ b/page_history.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/page_history.php,v 1.25 2007/10/03 07:00:13 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/page_history.php,v 1.26 2007/11/20 10:02:18 jht001 Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: page_history.php,v 1.25 2007/10/03 07:00:13 squareing Exp $
+ * $Id: page_history.php,v 1.26 2007/11/20 10:02:18 jht001 Exp $
* @package wiki
* @subpackage functions
*/
@@ -33,6 +33,10 @@ if( !$gContent->isValid() || empty( $gContent->mInfo ) ) {
$gContent->verifyViewPermission();
$gContent->verifyPermission( 'p_wiki_view_history' );
+if (!empty( $_REQUEST['rollback_preview'] )) {
+ $gBitSmarty->assign( 'rollback_preview', $_REQUEST['rollback_preview']);
+ }
+
// set up stuff to get history working
$smartyContentRef = 'pageInfo';
$rollbackPerm = 'p_wiki_rollback';