Merge branch 'master' of github.com:roundcube/roundcubemail

Conflicts:
	program/include/rcube_spellchecker.php
pull/16/head
Aleksander Machniak 12 years ago
commit 8b34075755

@ -252,6 +252,11 @@ class rcube_config
$prefs['timezone'] = timezone_name_from_abbr('', $prefs['timezone'] * 3600, 0);
}
// larry is the new default skin :-)
if ($prefs['skin'] == 'default') {
$prefs['skin'] = 'larry';
}
$this->userprefs = $prefs;
$this->prop = array_merge($this->prop, $prefs);

@ -228,8 +228,9 @@ class rcube_spellchecker
else if (!pspell_check($this->plink, $word)) {
$suggestions = pspell_suggest($this->plink, $word);
if (sizeof($suggestions) > self::MAX_SUGGESTIONS)
if (sizeof($suggestions) > self::MAX_SUGGESTIONS) {
$suggestions = array_slice($suggestions, 0, self::MAX_SUGGESTIONS);
}
$matches[] = array($word, $pos, $len, null, $suggestions);
}

Loading…
Cancel
Save