X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fsqspell_config.php;h=f2a59ca88104c43e8089e6c956da7814b65e2c57;hp=36fe289da9ae2e2a8236ef874ebfac41bcd8e0de;hb=b587ac51cdb214754146d61829ba87bf4341f949;hpb=67a86296062e6c57693dff183d4e513c55a94940;ds=sidebyside diff --git a/plugins/squirrelspell/sqspell_config.php b/plugins/squirrelspell/sqspell_config.php index 36fe289d..f2a59ca8 100644 --- 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; -if ( !check_php_version(4,1) ) { - global $_SESSION; -} - -$username = $_SESSION['username']; +sqgetGlobalVar('username', $username, SQ_SESSION); /** * Example: @@ -34,7 +30,5 @@ $SQSPELL_WORDS_FILE = getHashedFile($username, $data_dir, "$username.words"); $SQSPELL_EREG = 'ereg'; -#$SQSPELL_SOUP_NAZI = 'Mozilla/3, Mozilla/2, Opera 4, Opera/4, ' -# . 'Macintosh, OmniWeb'; ?>