Removed redundant functions, some Standardisation work
This commit is contained in:
@@ -122,12 +122,12 @@ class Controller_Reseller_Ssl extends Controller_Ssl {
|
||||
}
|
||||
|
||||
public function action_renew() {
|
||||
$so = ORM::factory('Service',Request::current()->param('id'));
|
||||
$so = ORM::factory('Service',$this->request->param('id'));
|
||||
|
||||
if (! $so->loaded() OR ! Auth::instance()->authorised($so->account))
|
||||
throw HTTP_Exception::factory(403,'Service either doesnt exist, or you are not authorised to see it');
|
||||
|
||||
$so->plugin()->renew();
|
||||
$so->plugin()->renew($this->request->query('force'));
|
||||
|
||||
HTTP::redirect(URL::link('user','service/view/'.$so->id));
|
||||
}
|
||||
|
Reference in New Issue
Block a user