updating error_box() function calls. second argument was modified.
[squirrelmail.git] / plugins / spamcop / spamcop.php
index a073034458f226d417472f4e5fd2e498d7b81733..96ede3aae4ce4b402e0c8659bb35b1db264f8b67 100644 (file)
@@ -57,8 +57,9 @@ if ($js_web) {
 
 /** is spamcop plugin disabled */
 if (! is_plugin_enabled('spamcop')) {
-    error_box(_("Plugin is disabled."),$color);
-    echo "\n</body></html>\n";
+    error_box(_("Plugin is disabled."));
+    // display footer (closes html tags) and stop script execution
+    $oTemplate->display('footer.tpl');
     exit();
 }