mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-27 02:04:31 -04:00
Last of changes required from Bharat's 2nd review pass
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user