Happy New Year
[squirrelmail.git] / plugins / squirrelspell / sqspell_interface.php
index 4d3cf5e2c83a76ca664030ac785aad70fd12fb9f..5bcd2cc4281e3ef2293493528cb8a8ed0fdb3c01 100644 (file)
@@ -9,13 +9,18 @@
  * SquirrelSpell.
  *
  * @author Konstantin Riabitsev <icon at duke.edu>
- * @copyright &copy; 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2018 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
  * @subpackage squirrelspell
  */
 
+/**
+ * Include the SquirrelMail initialization file.
+ */
+require('../../include/init.php');
+
 /**
  * Set up a couple of non-negotiable constants and
  * defaults. Don't change these, * the setuppable stuff is in
 $SQSPELL_DIR='plugins/squirrelspell/';
 $SQSPELL_CRYPTO=FALSE;
 
-
-/**
- * Include the SquirrelMail initialization file.
- */
-require('../../include/init.php');
-
 include_once(SM_PATH . $SQSPELL_DIR . 'sqspell_functions.php');
 
 /**
@@ -46,7 +45,7 @@ sqspell_ckMOD($MOD);
 if (file_exists(SM_PATH . $SQSPELL_DIR . "modules/$MOD.mod")) {
     require_once(SM_PATH . $SQSPELL_DIR . "modules/$MOD.mod");
 } else {
-    error_box(_("Invalid SquirrelSpell module."),$color);
-    echo '</body></html>';
+    error_box(_("Invalid SquirrelSpell module."));
+    // display sm footer (closes html tags)
+    $oTemplate->display('footer.tpl');
 }
-?>
\ No newline at end of file