Correct the path to the resource delete handler
This commit is contained in:
parent
4c0cb783a2
commit
a7851a9a97
@ -74,11 +74,12 @@ class G3_Handlers_Controller extends Controller {
|
||||
} catch (Exception $e) {
|
||||
print json_encode(array("result" => "fail", "message" => $e->getMessage()));
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
$response = G3Remote::instance()->get_resource("gallery/$path");
|
||||
$v = new View("delete.html");
|
||||
$v->title = $response->resource->title;
|
||||
$v->path = "g3_client/delete_album/?path=$path";
|
||||
$v->path = "delete_album/?path=$path";
|
||||
}
|
||||
|
||||
print json_encode(array("form" => (string)$v));
|
||||
|
Reference in New Issue
Block a user