Changeset 712

Show
Ignore:
Timestamp:
11/18/06 12:25:35 (2 years ago)
Author:
sven
Message:

only show interesting posts link on one's own blog.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/blog/lib.php

    r675 r712  
    5252                                        . __gettext("Friends' blogs") . '</a>');  
    5353             
    54             $PAGE->menu_sub[] = array ( 'name' => 'blog:interesting', 
    55                                         'html' => "<a href=\"{$CFG->wwwroot}{$weblog_username}/weblog/interesting/\">" 
    56                                         . __gettext("Interesting posts") . '</a>');  
    57              
     54            if ($page_owner == $_SESSION['userid']) { 
     55                $PAGE->menu_sub[] = array ( 'name' => 'blog:interesting', 
     56                                            'html' => "<a href=\"{$CFG->wwwroot}{$weblog_username}/weblog/interesting/\">" 
     57                                            . __gettext("Interesting posts") . '</a>');  
     58            } 
    5859        } 
    5960