plugins/SpecialUserPrefs.php
changeset 261 5f1cd51bf1be
parent 256 f8356d9c3481
child 285 e72bf2c24875
equal deleted inserted replaced
259:112debff64bd 261: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