aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog/views')
-rw-r--r--mod/blog/views/default/blog/forms/edit.php4
-rw-r--r--mod/blog/views/default/object/blog.php2
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">