- $content['top_email_nav'] = addEmailNavigation($numPages, getConfig('mails_page'), true , 3, true);
- $content['bottom_email_nav'] = addEmailNavigation($numPages, getConfig('mails_page'), false, 3, true);
+ $content['top_email_nav'] = addEmailNavigation($numPages, getMailsPage(), true , 3, true);
+ $content['bottom_email_nav'] = addEmailNavigation($numPages, getMailsPage(), false, 3, true);