summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-03-26 16:32:09 +0000
committerwjames5 <will@tekimaki.com>2007-03-26 16:32:09 +0000
commitba1aebfdc665932ff9e2688b87b41422cdd15af2 (patch)
treee65ac71a4826884535678e21e7e0f81442b80c31 /edit.php
parente6d1abf7142ce4c14204f68a440bcd65e8437a70 (diff)
downloadblogs-ba1aebfdc665932ff9e2688b87b41422cdd15af2.tar.gz
blogs-ba1aebfdc665932ff9e2688b87b41422cdd15af2.tar.bz2
blogs-ba1aebfdc665932ff9e2688b87b41422cdd15af2.zip
fix time in blog creation preview
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/edit.php b/edit.php
index ff27652..ac043d9 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/edit.php,v 1.22 2007/03/26 16:12:34 wjames5 Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/edit.php,v 1.23 2007/03/26 16:32:09 wjames5 Exp $
* @package blogs
* @subpackage functions
*/
@@ -58,10 +58,12 @@ if (!$gBitUser->hasPermission( 'p_blogs_create' ) && ($gBitUser->mUserId != $dat
$gBitSmarty->assign( 'textarea_id', LIBERTY_TEXT_AREA );
if (isset($_REQUEST['preview'])) {
+ //all this should prolly be moved to a BitBlog::preparePreview method and the tpls cleaned - but this works for now -wjames5
$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());
+ $gBitSmarty->assign('created', $gBitSystem->getUTCTime());
//DEPRECATED - slated for removal
// $gBitSmarty->assign('public_blog', isset($_REQUEST["public_blog"]) ? 'y' : 'n');