plugins/SpecialUserPrefs.php
changeset 388 9829ca63b53a
parent 372 5bd429428101
child 389 da3bb3e99323
equal deleted inserted replaced
386:f0978aed065a 388:9829ca63b53a
    44 $plugins->attachHook('compile_template', 'userprefs_jbox_setup($button, $tb, $menubtn);');
    44 $plugins->attachHook('compile_template', 'userprefs_jbox_setup($button, $tb, $menubtn);');
    45 
    45 
    46 function userprefs_jbox_setup(&$button, &$tb, &$menubtn)
    46 function userprefs_jbox_setup(&$button, &$tb, &$menubtn)
    47 {
    47 {
    48   global $db, $session, $paths, $template, $plugins; // Common objects
    48   global $db, $session, $paths, $template, $plugins; // Common objects
       
    49   global $lang;
    49   
    50   
    50   if ( $paths->namespace != 'Special' || $paths->page_id != 'Preferences' )
    51   if ( $paths->namespace != 'Special' || $paths->page_id != 'Preferences' )
    51     return false;
    52     return false;
    52   
    53   
    53   $tb .= "<ul>$template->toolbar_menu</ul>";
    54   $tb .= "<ul>$template->toolbar_menu</ul>";
    54   $template->toolbar_menu = '';
    55   $template->toolbar_menu = '';
    55   
    56   
    56   $button->assign_vars(array(
    57   $button->assign_vars(array(
    57       'TEXT' => 'list of registered members',
    58       'TEXT' => $lang->get('usercp_btn_memberlist'),
    58       'FLAGS' => '',
    59       'FLAGS' => '',
    59       'PARENTFLAGS' => '',
    60       'PARENTFLAGS' => '',
    60       'HREF' => makeUrlNS('Special', 'Memberlist')
    61       'HREF' => makeUrlNS('Special', 'Memberlist')
    61     ));
    62     ));
    62   
    63