summaryrefslogtreecommitdiff
path: root/modules/server_add/controllers/admin_server_add.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-03-04 20:09:53 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-03-04 20:09:53 +0000
commit705e6d62b7d75120822a559e9cc11f1159db5348 (patch)
tree7eda99f51f6ea2eb2498f8cc633a4f7fcb90c9f3 /modules/server_add/controllers/admin_server_add.php
parent8575e2b0d13040d51d920e09d85b2d757581da27 (diff)
Last of changes required from Bharat's 2nd review pass
Diffstat (limited to 'modules/server_add/controllers/admin_server_add.php')
-rw-r--r--modules/server_add/controllers/admin_server_add.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/server_add/controllers/admin_server_add.php b/modules/server_add/controllers/admin_server_add.php
index a340f61a..94dd8f74 100644
--- a/modules/server_add/controllers/admin_server_add.php
+++ b/modules/server_add/controllers/admin_server_add.php
@@ -40,13 +40,13 @@ class Admin_Server_Add_Controller extends Admin_Controller {
module::set_var("server_add", "authorized_paths", serialize($paths));
$view = new View("server_add_dir_list.html");
$view->paths = array_keys($paths);
- $form->add_path->inputs["path"]->value("");
+ $form->add_path->inputs->path->value = "";
print json_encode(
array("result" => "success",
"paths" => $view->__toString(),
"form" => $form->__toString()));
} else {
- $form->add_path->inputs["path"]->error("not_readable");
+ $form->add_path->inputs->path->error("not_readable");
print json_encode(array("result" => "error", "form" => $form->__toString()));
}
} else {