aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default/forms
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-08 03:20:34 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-08 03:20:34 +0000
commite71b5221f3896f6ddacdda5e0df406a8ce058c46 (patch)
tree78e0eecb3f3750b844d55b090c2dbffd5ccd328e /mod/blog/views/default/forms
parent1900eedee2f8d2fa729a01293238c2ad85fb4147 (diff)
downloadelgg-e71b5221f3896f6ddacdda5e0df406a8ce058c46.tar.gz
elgg-e71b5221f3896f6ddacdda5e0df406a8ce058c46.tar.bz2
Fixes #2229. Removed published data metadata in blog. Added upgrade to set all status metadata for old blog posts.
git-svn-id: http://code.elgg.org/elgg/trunk@8626 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views/default/forms')
-rw-r--r--mod/blog/views/default/forms/blog/save.php13
1 files changed, 3 insertions, 10 deletions
diff --git a/mod/blog/views/default/forms/blog/save.php b/mod/blog/views/default/forms/blog/save.php
index c8c0fde55..b2d20579f 100644
--- a/mod/blog/views/default/forms/blog/save.php
+++ b/mod/blog/views/default/forms/blog/save.php
@@ -48,8 +48,9 @@ $body_input = elgg_view('input/longtext', array(
));
$save_status = elgg_echo('blog:save_status');
-if ($vars['publish_date']) {
- $saved = date('F j, Y @ H:i', $vars['publish_date']);
+if ($vars['guid']) {
+ $entity = get_entity($vars['guid']);
+ $saved = date('F j, Y @ H:i', $entity->time_created);
} else {
$saved = elgg_echo('blog:never');
}
@@ -87,14 +88,6 @@ $access_input = elgg_view('input/access', array(
'value' => $vars['access_id']
));
-// not being used
-$publish_date_label = elgg_echo('blog:publish_date');
-$publish_date_input = elgg_view('input/datetime', array(
- 'name' => 'publish_date',
- 'id' => 'blog_publish_date',
- 'value' => $vars['publish_date']
-));
-
$categories_input = elgg_view('categories', $vars);
// hidden inputs