projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup some plugins to make use of sqgetGlobalVar
[squirrelmail.git]
/
plugins
/
squirrelspell
/
sqspell_config.php
diff --git
a/plugins/squirrelspell/sqspell_config.php
b/plugins/squirrelspell/sqspell_config.php
index
36fe289
..
f2a59ca
100644
(file)
--- a/
plugins/squirrelspell/sqspell_config.php
+++ b/
plugins/squirrelspell/sqspell_config.php
@@
-15,11
+15,7
@@
require_once(SM_PATH . 'functions/prefs.php');
/* Just for poor wretched souls with E_ALL. :) */
global $data_dir;
/* Just for poor wretched souls with E_ALL. :) */
global $data_dir;
-if ( !check_php_version(4,1) ) {
- global $_SESSION;
-}
-
-$username = $_SESSION['username'];
+sqgetGlobalVar('username', $username, SQ_SESSION);
/**
* Example:
/**
* Example:
@@
-34,7
+30,5
@@
$SQSPELL_WORDS_FILE =
getHashedFile($username, $data_dir, "$username.words");
$SQSPELL_EREG = 'ereg';
getHashedFile($username, $data_dir, "$username.words");
$SQSPELL_EREG = 'ereg';
-#$SQSPELL_SOUP_NAZI = 'Mozilla/3, Mozilla/2, Opera 4, Opera/4, '
-# . 'Macintosh, OmniWeb';
?>
?>