aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/actions
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/actions
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/actions')
-rw-r--r--mod/blog/actions/blog/auto_save_revision.php2
-rw-r--r--mod/blog/actions/blog/save.php14
2 files changed, 0 insertions, 16 deletions
diff --git a/mod/blog/actions/blog/auto_save_revision.php b/mod/blog/actions/blog/auto_save_revision.php
index 86812c6d3..1acf3b31b 100644
--- a/mod/blog/actions/blog/auto_save_revision.php
+++ b/mod/blog/actions/blog/auto_save_revision.php
@@ -38,8 +38,6 @@ if ($title && $description) {
$blog->title = $title;
$blog->description = $description;
$blog->excerpt = elgg_get_excerpt($excerpt);
- // must be present or doesn't show up when metadata sorting.
- $blog->publish_date = time();
// mark this as a brand new post so we can work out the
// river / revision logic in the real save action.
diff --git a/mod/blog/actions/blog/save.php b/mod/blog/actions/blog/save.php
index 5dccab45d..099a89cc0 100644
--- a/mod/blog/actions/blog/save.php
+++ b/mod/blog/actions/blog/save.php
@@ -106,18 +106,6 @@ foreach ($values as $name => $default) {
}
}
-// build publish_date
-//$publish_month = get_input('publish_month');
-//$publish_day = get_input('publish_day');
-//$publish_year = get_input('publish_year');
-//$publish_hour = get_input('publish_hour');
-//$publish_minute = get_input('publish_minute');
-//$datetime = "$publish_year-$publish_month-$publish_day $publish_hour:$publish_minute:00";
-//$values['publish_date'] = date('U', strtotime($datetime));
-
-// setting publish_date to now until the problems with locale dates can be resolved.
-$values['publish_date'] = time();
-
// assign values to the entity, stopping on error.
if (!$error) {
foreach ($values as $name => $value) {
@@ -154,8 +142,6 @@ if (!$error) {
// because we remove it for drafts.
if (($new_post || $old_status == 'draft') && $status == 'published') {
add_to_river('river/object/blog/create', 'create', elgg_get_logged_in_user_guid(), $blog->getGUID());
-
- $date = $blog->publish_date;
if ($guid) {
$q = "UPDATE {$db_prefix}entities SET time_created = '$date'