plugins/SpecialUserPrefs.php
changeset 322 5f1cd51bf1be
parent 317 f8356d9c3481
child 328 dc838fd61a06
equal deleted inserted replaced
320:112debff64bd 322:5f1cd51bf1be
    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   
    49   
    50   if ( $paths->namespace != 'Special' || $paths->cpage['urlname_nons'] != 'Preferences' )
    50   if ( $paths->namespace != 'Special' || $paths->page_id != 'Preferences' )
    51     return false;
    51     return false;
    52   
    52   
    53   $tb .= "<ul>$template->toolbar_menu</ul>";
    53   $tb .= "<ul>$template->toolbar_menu</ul>";
    54   $template->toolbar_menu = '';
    54   $template->toolbar_menu = '';
    55   
    55