Minor updates

This commit is contained in:
Deon George
2012-11-27 16:46:43 +11:00
parent ea1346447f
commit e00c3751de
7 changed files with 82 additions and 12 deletions

View File

@@ -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'),

View File

@@ -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'),

View File

@@ -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'),

View File

@@ -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'),