summaryrefslogtreecommitdiff
path: root/page_history.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-16 13:48:13 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-16 13:48:13 +0000
commitd729805cda2f966f3fa8f61bb761837419b50e19 (patch)
tree93e2ffcbaef532c8a868fb034058f16da9d40c0a /page_history.php
parent0d9b2c0b2b972490b81c4236b48589a1a5484df8 (diff)
downloadwiki-d729805cda2f966f3fa8f61bb761837419b50e19.tar.gz
wiki-d729805cda2f966f3fa8f61bb761837419b50e19.tar.bz2
wiki-d729805cda2f966f3fa8f61bb761837419b50e19.zip
new API for parseData(); please view ApiChangeLog for details
Diffstat (limited to 'page_history.php')
-rw-r--r--page_history.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/page_history.php b/page_history.php
index 43faf1f..307a11a 100644
--- a/page_history.php
+++ b/page_history.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_wiki/page_history.php,v 1.8 2006/02/07 01:19:19 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_wiki/page_history.php,v 1.9 2006/02/16 13:48:13 squareing 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.8 2006/02/07 01:19:19 spiderr Exp $
+ * $Id: page_history.php,v 1.9 2006/02/16 13:48:13 squareing Exp $
* @package wiki
* @subpackage functions
*/
@@ -51,7 +51,7 @@ if (isset($_REQUEST["delete"]) && isset($_REQUEST["hist"])) {
}
} elseif (isset($_REQUEST["preview"])) {
if( $version = $gContent->getHistory( $_REQUEST["preview"] ) ) {
- $gBitSmarty->assign_by_ref('parsed', $gContent->parseData( $version[0]["data"], $version[0]["format_guid"] ) );
+ $gBitSmarty->assign_by_ref('parsed', $gContent->parseData( $version[0] ) );
$gBitSmarty->assign_by_ref('version', $_REQUEST["preview"]);
}
} elseif( isset( $_REQUEST["diff2"] ) ) {
@@ -74,12 +74,12 @@ if (isset($_REQUEST["delete"]) && isset($_REQUEST["hist"])) {
$from_version = $_REQUEST["compare"];
$from_page = $gContent->getHistory($from_version);
$gBitSmarty->assign('compare', 'y');
- $gBitSmarty->assign_by_ref('diff_from', $gContent->parseData( $from_page[0]["data"], $from_page[0]["format_guid"] ) );
+ $gBitSmarty->assign_by_ref('diff_from', $gContent->parseData( $from_page[0] ) );
$gBitSmarty->assign_by_ref('diff_to', $gContent->parseData() );
$gBitSmarty->assign_by_ref('version_from', $from_version);
} elseif (isset($_REQUEST["rollback"])) {
if( $version = $gContent->getHistory( $_REQUEST["preview"] ) ) {
- $gBitSmarty->assign_by_ref('parsed', $gContent->parseData( $version[0]["data"], $version[0]["format_guid"] ) );
+ $gBitSmarty->assign_by_ref('parsed', $gContent->parseData( $version[0] ) );
$gBitSmarty->assign_by_ref('version', $_REQUEST["preview"]);
}
}