summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-03-26 16:12:35 +0000
committerwjames5 <will@tekimaki.com>2007-03-26 16:12:35 +0000
commite6d1abf7142ce4c14204f68a440bcd65e8437a70 (patch)
treeae60507367249b8ab9f580a328b44e3691335499 /edit.php
parent4cbfc31af7860075e5ab00d7e0cac336bb2e1406 (diff)
downloadblogs-e6d1abf7142ce4c14204f68a440bcd65e8437a70.tar.gz
blogs-e6d1abf7142ce4c14204f68a440bcd65e8437a70.tar.bz2
blogs-e6d1abf7142ce4c14204f68a440bcd65e8437a70.zip
fix blog edit preview, and parse format bug in getBlog
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/edit.php b/edit.php
index 6f86d77..ff27652 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/edit.php,v 1.21 2007/03/22 01:58:36 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/edit.php,v 1.22 2007/03/26 16:12:34 wjames5 Exp $
* @package blogs
* @subpackage functions
*/
@@ -59,15 +59,19 @@ $gBitSmarty->assign( 'textarea_id', LIBERTY_TEXT_AREA );
if (isset($_REQUEST['preview'])) {
$gBitSmarty->assign('title', $_REQUEST["title"]);
+ $gBitSmarty->assign('edit', $_REQUEST["edit"]);
+ $gBitSmarty->assign('parsed', $gContent->parseData( $_REQUEST["edit"], $_REQUEST["format_guid"]));
+ $gBitSmarty->assign('user_name', $gBitUser->getDisplayName());
+
+//DEPRECATED - slated for removal
+// $gBitSmarty->assign('public_blog', isset($_REQUEST["public_blog"]) ? 'y' : 'n');
- $gBitSmarty->assign('description', $_REQUEST["description"]);
- $gBitSmarty->assign('public_blog', isset($_REQUEST["public_blog"]) ? 'y' : 'n');
$gBitSmarty->assign('use_find', isset($_REQUEST["use_find"]) ? 'y' : 'n');
$gBitSmarty->assign('use_title', isset($_REQUEST["use_title"]) ? 'y' : 'n');
$gBitSmarty->assign('allow_comments', isset($_REQUEST["allow_comments"]) ? 'y' : 'n');
$gBitSmarty->assign('max_posts', $_REQUEST["max_posts"]);
$gBitSmarty->assign('heading', $heading);
- $gBlog->invokeServices('content_preview_function');
+ $gContent->invokeServices('content_preview_function');
} else {
$gContent->invokeServices('content_edit_function');
}