| 59 | | static public function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) |
|---|
| 60 | | { |
|---|
| 61 | | if (!extension_loaded('pspell') || !$client->getIni('spellcheck.lang')) { |
|---|
| 62 | | return false; |
|---|
| 63 | | } |
|---|
| 64 | | |
|---|
| 65 | | return true; |
|---|
| | 59 | static public function checkDependencies(Phergie_Driver_Abstract $client, array $plugins) |
|---|
| | 60 | { |
|---|
| | 61 | $errors = array(); |
|---|
| | 62 | |
|---|
| | 63 | if (!extension_loaded('pspell')) { |
|---|
| | 64 | $errors[] = 'pspell php extension is required'; |
|---|
| | 65 | } |
|---|
| | 66 | if (!$client->getIni('spellcheck.lang')) { |
|---|
| | 67 | $errors[] = 'Ini setting spellcheck.lang must be filled-in'; |
|---|
| | 68 | } |
|---|
| | 69 | |
|---|
| | 70 | return empty($errors) ? true : $errors; |
|---|