updating error_box() function calls. second argument was modified.
[squirrelmail.git] / plugins / change_password / backend / template.php
index e7b0a8b474fe2c7505beee37f053e098657476fc..16bd3279c77859be521dbc6d11314fa4ef5e1301 100644 (file)
@@ -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();
 }