X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fmodules%2Fenc_setup.mod;h=39d2e87bec0cd2f9625c55b8e279a06314f49f97;hp=61aa61bc91b84e209a38c1309b947b1b8cbcce31;hb=5e5daa47f6270e55903f95fb3deff491fde2d6f5;hpb=6c84ba1ec45ab854c37b6f65c5b4d84ab1c7aad4
diff --git a/plugins/squirrelspell/modules/enc_setup.mod b/plugins/squirrelspell/modules/enc_setup.mod
index 61aa61bc..39d2e87b 100644
--- a/plugins/squirrelspell/modules/enc_setup.mod
+++ b/plugins/squirrelspell/modules/enc_setup.mod
@@ -1,16 +1,16 @@
+ * @author Konstantin Riabitsev
+ * @copyright 1999-2015 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @subpackage squirrelspell
@@ -31,13 +31,19 @@ $msg = '";
-$words=sqspell_getWords();
+$crypted=false;
+$langs=sqspell_getSettings();
+foreach ($langs as $lang) {
+ $words=sqspell_getLang($lang);
+ if ($SQSPELL_CRYPTO) $crypted = true;
+}
+
/**
* When getting the user dictionary, the SQSPELL_CRYPTO flag will be
* set to "true" if the dictionary is encrypted, or "false" if it is
* in plain text.
*/
-if ($SQSPELL_CRYPTO){
+if ($crypted){
/**
* Current format is encrypted.
* Unfortunately, the following text needs to be all on one line,
@@ -54,10 +60,10 @@ if ($SQSPELL_CRYPTO){
. '
'
. '';
}
sqspell_makePage(_("Personal Dictionary Crypto Settings"),
- "crypto_settings.js", $msg);
+ "crypto_settings.js", $msg);
/**
* For Emacs weenies:
@@ -97,5 +103,3 @@ sqspell_makePage(_("Personal Dictionary Crypto Settings"),
* End:
* vim: syntax=php
*/
-
-?>
\ No newline at end of file