Minor fixes to ssl and core
This commit is contained in:
@@ -41,15 +41,12 @@ class Controller_Admin_SSL extends Controller_TemplateDefault_Admin {
|
||||
$so = ORM::factory('ssl_ca',$id);
|
||||
|
||||
if ($_POST) {
|
||||
if (! $so->values($_POST)->check() OR ! $so->save())
|
||||
throw new Kohana_Exception('Failed to save updates to data for record :record',array(':record'=>$so->id()));
|
||||
else {
|
||||
if ($so->values($_POST)->check() AND $so->save())
|
||||
SystemMessage::add(array(
|
||||
'title'=>'SSL Certificate Saved',
|
||||
'type'=>'info',
|
||||
'body'=>'SSL Certificate successfully recorded.',
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
$output .= Form::open();
|
||||
|
Reference in New Issue
Block a user