Changeset 466

Show
Ignore:
Timestamp:
07/22/06 13:40:37 (2 years ago)
Author:
sven
Message:

add "page help" back into community profile

Files:

Legend:

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

    r459 r466  
    2020        } 
    2121 
    22         if (profile_permissions_check("profile") && context === "profile" && run("users:type:get", $page_owner) == "person") { 
    23  
    24             $PAGE->menu_sub[] = array( 'name' => 'profile:edit',  
    25                                        'html' => '<a href="'.$CFG->wwwroot.'profile/edit.php?profile_id='.$pgowner.'">' 
    26                                        . gettext("Edit this profile") . '</a>'); 
     22        if (profile_permissions_check("profile") && context === "profile") { 
    2723 
    2824            if (run("users:type:get", $pgowner) == "person") { 
     25                $PAGE->menu_sub[] = array( 'name' => 'profile:edit',  
     26                                           'html' => '<a href="'.$CFG->wwwroot.'profile/edit.php?profile_id='.$pgowner.'">' 
     27                                           . gettext("Edit this profile") . '</a>'); 
     28 
    2929                $PAGE->menu_sub[] = array( 'name' => 'profile:picedit',  
    3030                                           'html' => '<a href="'.$CFG->wwwroot.'_icons/?context=profile&amp;profile_id='.$pgowner.'">'