Changed use of active to status
This commit is contained in:
@@ -25,7 +25,7 @@ class Controller_User_SSL extends Controller_TemplateDefault_User {
|
||||
$passwd = $_POST['passwd'];
|
||||
if (strlen($passwd) < Kohana::config('ssl.minpass_length')) {
|
||||
SystemMessage::add(array(
|
||||
'title'=>_('Validation failed'),
|
||||
'title'=>_('Validation failed'),
|
||||
'type'=>'error',
|
||||
'body'=>_('Your requested password is too short.'),
|
||||
));
|
||||
|
@@ -121,7 +121,7 @@ class Model_Service_Plugin_SSL extends Model_Service_Plugin {
|
||||
}
|
||||
|
||||
public function download_button() {
|
||||
if (! $this->service->active OR ! preg_match('/client/',$this->service->product->plugin()->extensions) OR $this->valid_to() < time())
|
||||
if (! $this->service->status OR ! preg_match('/client/',$this->service->product->plugin()->extensions) OR $this->valid_to() < time())
|
||||
return '';
|
||||
|
||||
// @todo Do some password validation
|
||||
|
Reference in New Issue
Block a user