X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fchange_password%2Fbackend%2Ftemplate.php;h=08dbdb7dfd5b02d779e65bf17c84c9bf0cbf4e43;hb=353d074afac6827c90f4bb03e846c5e453d3b5b1;hp=6f54de22518a3d134d8f04e32d558d7800cc1011;hpb=47ccfad452e8d345542d09e59112cac317cffed8;p=squirrelmail.git diff --git a/plugins/change_password/backend/template.php b/plugins/change_password/backend/template.php index 6f54de22..08dbdb7d 100644 --- a/plugins/change_password/backend/template.php +++ b/plugins/change_password/backend/template.php @@ -10,7 +10,7 @@ * * Replace the word template everywhere with a name for your backend. * - * @copyright © 2003-2006 The SquirrelMail Project Team + * @copyright 2003-2018 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -39,23 +39,12 @@ $squirrelmail_plugin_hooks['change_password_init']['template'] = */ function cpw_template_init() { - global $color; - - /** - * If SM_PATH isn't defined, define it. Required to include files. - * @ignore - */ - if (!defined('SM_PATH')) { - define('SM_PATH','../../../'); - } - - // load error_box() function - include_once(SM_PATH . 'functions/display_messages.php'); + global $oTemplate; // plugin is not configured. Handle error gracefully. - error_box(_("No valid backend defined."),$color); + error_box(_("No valid backend defined.")); // close html and stop script execution - echo "\n"; + $oTemplate->display('footer.tpl'); exit(); }