Minor updates
This commit is contained in:
@@ -39,7 +39,9 @@ class Controller_Domain extends Controller_TemplateDefault {
|
||||
));
|
||||
}
|
||||
|
||||
public function action_detail($domain_name=NULL) {
|
||||
public function action_detail() {
|
||||
$domain_name = $this->request->param('id');
|
||||
|
||||
if (is_null($domain_name) AND (empty($_POST['domain_name']) OR ! $domain_name = $_POST['domain_name'])) {
|
||||
SystemMessage::add(array(
|
||||
'title'=>_('DOMAIN_NAME is required'),
|
||||
|
@@ -39,7 +39,9 @@ class Controller_Library extends Controller_TemplateDefault {
|
||||
));
|
||||
}
|
||||
|
||||
public function action_detail($library=NULL) {
|
||||
public function action_detail() {
|
||||
$library = $this->request->param('id');
|
||||
|
||||
if (is_null($library) AND (empty($_POST['library_name']) OR ! $library = $_POST['library_name'])) {
|
||||
SystemMessage::add(array(
|
||||
'title'=>_('LIBRARY_NAME is required'),
|
||||
|
@@ -39,7 +39,9 @@ class Controller_Node extends Controller_TemplateDefault {
|
||||
));
|
||||
}
|
||||
|
||||
public function action_detail($node_name=NULL) {
|
||||
public function action_detail() {
|
||||
$node_name = $this->request->param('id');
|
||||
|
||||
if (is_null($node_name) AND (empty($_POST['node_name']) OR ! $node_name = $_POST['node_name'])) {
|
||||
SystemMessage::add(array(
|
||||
'title'=>_('NODE_NAME is required'),
|
||||
|
@@ -39,7 +39,9 @@ class Controller_Stgpool extends Controller_TemplateDefault {
|
||||
));
|
||||
}
|
||||
|
||||
public function action_detail($stgpool=NULL) {
|
||||
public function action_detail() {
|
||||
$stgpool = $this->request->param('id');
|
||||
|
||||
if (is_null($stgpool) AND (empty($_POST['stgpool_name']) OR ! $stgpool = $_POST['stgpool_name'])) {
|
||||
SystemMessage::add(array(
|
||||
'title'=>_('STGPOOL_NAME is required'),
|
||||
|
Reference in New Issue
Block a user