It used to appear on the top line, at the right next to Login/Logout, and was generated here, I believe:
Code: Select all
//
// Show login box or logged-in user information
//
if (isset($auth)) {
if (in_array(true, $permission)) {
$adminSection = sprintf(
'<a href="%s">%s</a>',
$systemUri . 'admin/index.php',
$PMF_LANG['adminSection']
);
} else {
$adminSection = sprintf(
'<a href="%s">%s</a>',
$systemUri . 'index.php?action=ucp',
$PMF_LANG['headerUserControlPanel']
);
}
Looking at it now, though, I see there's a similar bit in 2.9.9:
Code: Select all
//
// Show login box or logged-in user information
//
if (isset($auth)) {
$userRights = $user->perm->getAllUserRights($user->getUserId());
$minRights = ['37', '39', '40', '41'];
if (array_values(array_intersect($userRights, $minRights)) === $minRights) {
$adminSection = sprintf(
'<a href="%s">%s</a>',
$faqSystem->getSystemUri($faqConfig).'admin/index.php',
$PMF_LANG['adminSection']
);
} else {
$adminSection = '';
}
However that doesn't seem to do anything for me. I have to go to /admin manually.
(Coincidentally, when I do go to /admin manually, my "Dashboard" page is empty and my "Admin worklog" link is inactive. So I'm wondering if something's still not right after upgrading.)