diff --git a/pages/login/LoginHandler.inc.php b/pages/login/LoginHandler.inc.php index edd28c4..5ffbba5 100644 --- a/pages/login/LoginHandler.inc.php +++ b/pages/login/LoginHandler.inc.php @@ -32,6 +32,7 @@ class LoginHandler extends PKPLoginHandler { $conference =& Request::getConference(); if (!Validation::canAdminister($conference->getId(), $userId)) { + $this->setupTemplate(); // We don't have administrative rights // over this user. Display an error. $templateMgr =& TemplateManager::getManager(); @@ -103,6 +104,14 @@ class LoginHandler extends PKPLoginHandler { $mail->setFrom($site->getLocalizedContactEmail(), $site->getLocalizedContactName()); } } + + /** + * Configure the template for display. + */ + function setupTemplate() { + Locale::requireComponents(array(LOCALE_COMPONENT_OCS_MANAGER, LOCALE_COMPONENT_PKP_MANAGER)); + parent::setupTemplate(); + } } ?>