mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
improved policy apply feature
This commit is contained in:
@ -23,12 +23,13 @@ class ControllerPolicyApply extends Controller {
|
||||
system('sudo -n /etc/init.d/rc.piler reload', $val);
|
||||
|
||||
if($val === 0) {
|
||||
print $lang->data['text_applied'];
|
||||
$this->data['x'] = $lang->data['text_applied'];
|
||||
} else {
|
||||
print $lang->data['text_install_sudo_apply'];
|
||||
$this->data['x'] = $lang->data['text_install_sudo_apply'];
|
||||
}
|
||||
|
||||
|
||||
$this->render();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user