aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/blog_lib.php
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-02 20:28:00 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-02 20:28:00 +0000
commit5224a87794f29031bda2f587dd672746d1ea08a0 (patch)
treecbd9465181f0a5eae18b8bc896fb56f721cc576d /mod/blog/blog_lib.php
parentc262a9185a736494f32c69fa5d1cd1b74eaedf2b (diff)
downloadelgg-5224a87794f29031bda2f587dd672746d1ea08a0.tar.gz
elgg-5224a87794f29031bda2f587dd672746d1ea08a0.tar.bz2
Fixing breadcrumb navigation and content header links for blogs.
git-svn-id: http://code.elgg.org/elgg/trunk@5581 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/blog_lib.php')
-rw-r--r--mod/blog/blog_lib.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/blog/blog_lib.php b/mod/blog/blog_lib.php
index f3e853ad7..e8daeeed9 100644
--- a/mod/blog/blog_lib.php
+++ b/mod/blog/blog_lib.php
@@ -17,16 +17,18 @@
* @return string html
*/
function blog_get_page_content_read($owner_guid = NULL, $guid = NULL) {
- $content = elgg_view('page_elements/content_header', array('context' => $context, 'type' => 'blog'));
+ global $CONFIG;
+
+ $content = elgg_view('page_elements/content_header', array('context' => $context, 'type' => 'blog', 'all_link' => "{$CONFIG->site->url}pg/blog"));
if ($guid) {
$blog = get_entity($guid);
if (!elgg_instanceof($blog, 'object', 'blog') || ($blog->status != 'final' && !$blog->canEdit())) {
- $content .= elgg_echo('blog:error:post_not_found');
+ $content = elgg_echo('blog:error:post_not_found');
} else {
elgg_push_breadcrumb($blog->title, $blog->getURL());
- $content .= elgg_view_entity($blog, TRUE);
+ $content = elgg_view_entity($blog, TRUE);
}
} else {
$options = array(