equal
deleted
inserted
replaced
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 |