diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-14 07:52:31 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-14 07:52:31 +0000 |
commit | 30df49bbb363d47b4a3961bb3ec07cdecea7619b (patch) | |
tree | 58905f6343a32ed9bf35baa8298f9851e30259e3 /mod/blog | |
parent | cd33e6a791409bf0898d6d1db5938b09415289fb (diff) | |
download | elgg-30df49bbb363d47b4a3961bb3ec07cdecea7619b.tar.gz elgg-30df49bbb363d47b4a3961bb3ec07cdecea7619b.tar.bz2 |
Fixes #2547: Plugins can now participate in autoloading classes.
git-svn-id: http://code.elgg.org/elgg/trunk@7074 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog')
-rw-r--r-- | mod/blog/blog_lib.php | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/mod/blog/blog_lib.php b/mod/blog/blog_lib.php index 3152cccad..1895930aa 100644 --- a/mod/blog/blog_lib.php +++ b/mod/blog/blog_lib.php @@ -278,42 +278,3 @@ function blog_get_blog_months($user_guid = NULL, $container_guid = NULL) { return get_data($q); } - -/** - * Extended class to override the time_created - */ -class ElggBlog extends ElggObject { - protected function initialise_attributes() { - parent::initialise_attributes(); - - // override the default file subtype. - $this->attributes['subtype'] = 'blog'; - } - - /** - * @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; -// } -}
\ No newline at end of file |