File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 2020use ipl \Validator \PrivateKeyValidator ;
2121use ipl \Validator \X509CertValidator ;
2222use Throwable ;
23+ use Zend_Form_Decorator_Abstract ;
2324use Zend_Validate_Callback ;
2425
2526class RedisConfigForm extends ConfigForm
@@ -537,6 +538,17 @@ public function onSuccess()
537538
538539 try {
539540 $ connectionConfig ->saveIni ();
541+ } catch (NotWritableError $ e ) {
542+ $ this ->addDecorator ('ViewScript ' , array (
543+ 'viewModule ' => 'default ' ,
544+ 'viewScript ' => 'showConfiguration.phtml ' ,
545+ 'errorMessage ' => $ e ->getMessage (),
546+ 'configString ' => $ connectionConfig ,
547+ 'filePath ' => $ connectionConfig ->getConfigFile (),
548+ 'placement ' => Zend_Form_Decorator_Abstract::PREPEND
549+ ));
550+
551+ return false ;
540552 } catch (Throwable $ e ) {
541553 $ this ->addError ($ e ->getMessage ());
542554 Logger::error ($ e ->getMessage ());
You can’t perform that action at this time.
0 commit comments