diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-23 19:25:14 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-23 19:25:14 +0000 |
commit | b3e6ac6960e56001d80243f694fe2109211a5fce (patch) | |
tree | f8dfebc35a3fabda7a615b389b8758b88358f63b /mod/blog/views/default | |
parent | c71f11c1b7a4a2ee634acd50582e5202da5389cc (diff) | |
download | elgg-b3e6ac6960e56001d80243f694fe2109211a5fce.tar.gz elgg-b3e6ac6960e56001d80243f694fe2109211a5fce.tar.bz2 |
Added an ElggBlog class to override the time_created field.
Added extra language files.
git-svn-id: http://code.elgg.org/elgg/trunk@5486 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views/default')
-rw-r--r-- | mod/blog/views/default/blog/forms/edit.php | 4 | ||||
-rw-r--r-- | mod/blog/views/default/object/blog.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/blog/views/default/blog/forms/edit.php b/mod/blog/views/default/blog/forms/edit.php index 83ee8208e..b2b494c7a 100644 --- a/mod/blog/views/default/blog/forms/edit.php +++ b/mod/blog/views/default/blog/forms/edit.php @@ -33,7 +33,7 @@ $draft_warning = ''; if (isset ($vars['entity'])) { $blog = $vars['entity']; - if ($blog && ($blog instanceof ElggObject) && ($blog->getSubtype() == 'blog')) { + if (elgg_instanceof($blog, 'object', 'blog')) { // passed in values override sticky values in input views // if in a sticky form, don't send the overrides and let the view figure it out. //if (!elgg_is_sticky_form()) { @@ -140,7 +140,7 @@ $publish_date_label = elgg_echo('blog:publish_date'); $publish_date_input = elgg_view('input/datepicker', array( 'internalname' => 'publish_date', 'internalid' => 'blog_publish_date', - 'value' => $vars['publish_date'] + 'value' => $values['publish_date'] )); // hidden inputs diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php index 3df1813fa..fb996fb19 100644 --- a/mod/blog/views/default/object/blog.php +++ b/mod/blog/views/default/object/blog.php @@ -66,7 +66,7 @@ if ($full) { $comments = ''; } $like = elgg_view_likes($blog); - $owner_title = sprintf(elgg_echo('blog:owner_title'), $user->name); + $owner_title = sprintf(elgg_echo('blog:owner_title'), $owner->name); echo <<<___END <div class="blogpost clearfloat"> |