aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog/views/default')
-rw-r--r--mod/blog/views/default/blog/sidebar_revisions.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/mod/blog/views/default/blog/sidebar_revisions.php b/mod/blog/views/default/blog/sidebar_revisions.php
index cb65b4d0c..3481e444d 100644
--- a/mod/blog/views/default/blog/sidebar_revisions.php
+++ b/mod/blog/views/default/blog/sidebar_revisions.php
@@ -41,30 +41,29 @@ if (elgg_instanceof($blog, 'object', 'blog') && $blog->canEdit()) {
if ($blog->status == 'published') {
$load = elgg_view('output/url', array(
'href' => $load_base_url,
- 'text' => elgg_echo('load')
+ 'text' => elgg_echo('blog:status:published')
));
$time = "<span class='entity_subtext'>".friendly_time($blog->publish_date)."</span>";
echo '<li>
- ' . elgg_echo('blog:status:published') . ": $time $load
+ ' . $load . ": $time
</li>";
}
foreach ($revisions as $revision) {
$time = "<span class='entity_subtext'>".friendly_time($revision->time_created)."</span>";
- $load = elgg_view('output/url', array(
- 'href' => $load_base_url . $revision->id,
- 'text' => elgg_echo('load')
- ));
-
if ($revision->name == 'blog_auto_save') {
- $name = elgg_echo('blog:auto_saved_revision');
+ $revision_lang = elgg_echo('blog:auto_saved_revision');
} else {
- $name = elgg_echo('blog:revision') . " $n";
+ $revision_lang = elgg_echo('blog:revision') . " $n";
}
+ $load = elgg_view('output/url', array(
+ 'href' => $load_base_url . $revision->id,
+ 'text' => $revision_lang
+ ));
- $text = "$name: $time $load";
+ $text = "$load: $time";
$class = 'class="auto_saved"';
$n--;