]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Moved blog edit sidebar revisions to the top of the sidebar.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 16:59:55 +0000 (16:59 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 16:59:55 +0000 (16:59 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6179 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/blog/start.php

index bce434fbc49f5ab3e9f644329368df158d017a1e..6ac8a5dc743eb6d2304b64fc6ef2517bb7f09cb8 100644 (file)
@@ -61,7 +61,7 @@ function blog_init() {
 
        // ecml
        register_plugin_hook('get_views', 'ecml', 'blog_ecml_views_hook');
-       
+
        // Register profile menu hook
        register_plugin_hook('profile_menu', 'profile', 'blog_profile_menu');
 }
@@ -152,10 +152,10 @@ function blog_page_handler($page) {
                $content_info = blog_get_page_content_read();
        }
 
+       $sidebar = isset($content_info['sidebar']) ? $content_info['sidebar'] : '';
+
        $sidebar .= elgg_view('blog/sidebar_menu');
-       if (isset($content_info['sidebar'])) {
-               $sidebar .= $content_info['sidebar'];
-       }
+
        $content = elgg_view('navigation/breadcrumbs') . $content_info['content'];
 
        $body = elgg_view_layout('one_column_with_sidebar', $content, $sidebar);
@@ -214,12 +214,12 @@ function blog_ecml_views_hook($hook, $entity_type, $return_value, $params) {
 
 function blog_profile_menu($hook, $entity_type, $return_value, $params) {
        global $CONFIG;
-       
+
        $return_value[] = array(
                'text' => elgg_echo('blog'),
                'href' => "{$CONFIG->url}pg/blog/{$params['owner']->username}/read",
        );
-       
+
        return $return_value;
 }