* --------------
* Squirrelspell module
*
- * Copyright (c) 1999-2002 The SquirrelMail development team
+ * Copyright (c) 1999-2003 The SquirrelMail development team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This module deletes the words from the user dictionary. Called
* @version $Date$
*/
-global $words_ary, $sqspell_use_app, $SQSPELL_VERSION;
+global $SQSPELL_VERSION;
+
+$words_ary = $_POST['words_ary'];
+$sqspell_use_app = $_POST['sqspell_use_app'];
+
/**
* If something needs to be deleted, then $words_ary will be
* non-zero length.
$words=sqspell_getWords();
$lang_words = sqspell_getLang($words, $sqspell_use_app);
$msg = '<p>'
- . sprintf(_("Deleting the following entries from <strong>%s</strong> dictionary:", $sqspell_use_app)) .
+ . sprintf(_("Deleting the following entries from <strong>%s</strong> dictionary:"), $sqspell_use_app)
. '</p>'
. "<ul>\n";
for ($i=0; $i<sizeof($words_ary); $i++){
}
$words_dic .= "# End\n";
sqspell_writeWords($words_dic);
- $msg .= '</ul><p>' _("All done!") . "</p>\n";
+ $msg .= '</ul><p>' . _("All done!") . "</p>\n";
sqspell_makePage(_("Personal Dictionary Updated"), null, $msg);
} else {
/**