Happy 2017
[squirrelmail.git] / plugins / change_password / backend / template.php
index e7b0a8b474fe2c7505beee37f053e098657476fc..6aa85e0eb8b9e7e25aaadd23dcd9b8bc827f5adc 100644 (file)
@@ -10,7 +10,7 @@
  *
  * Replace the word template everywhere with a name for your backend.
  *
- * @copyright © 2003-2006 The SquirrelMail Project Team
+ * @copyright 2003-2017 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
@@ -39,12 +39,12 @@ $squirrelmail_plugin_hooks['change_password_init']['template'] =
  */
 function cpw_template_init()
 {
-    global $color;
+    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 "</body></html>\n";
+    $oTemplate->display('footer.tpl');
     exit();
 }