aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/classes
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/classes
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/classes')
-rw-r--r--mod/blog/classes/ElggBlog.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/mod/blog/classes/ElggBlog.php b/mod/blog/classes/ElggBlog.php
index 0f0f27cf8..ee2ec73ef 100644
--- a/mod/blog/classes/ElggBlog.php
+++ b/mod/blog/classes/ElggBlog.php
@@ -14,33 +14,6 @@ class ElggBlog extends ElggObject {
}
/**
- * @todo this won't work until we have date l10n working.
- * Rewrite the time created to be publish time.
- * This is a bit dirty, but required for proper sorting.
- */
-// public function save() {
-// if (parent::save()) {
-// global $CONFIG;
-//
-// // try to grab the publish date, but default to now.
-// foreach (array('publish_date', 'time_created') as $field) {
-// if (isset($this->$field) && $this->field) {
-// $published = $this->field;
-// break;
-// }
-// }
-// if (!$published) {
-// $published = time();
-// }
-//
-// $sql = "UPDATE {$CONFIG->dbprefix}entities SET time_created = '$published', time_updated = '$published' WHERE guid = '{$this->getGUID()}'";
-// return update_data($sql);
-// }
-//
-// return FALSE;
-// }
-
- /**
* Can a user comment on this blog?
*
* @see ElggObject::canComment()