refactored bulk actions & implemented bulk trash for all listings

This commit is contained in:
Jonathan Labreuille
2015-09-18 17:39:25 +02:00
parent cbcd614b6f
commit 239e2583d2
16 changed files with 259 additions and 160 deletions

View File

@@ -24,7 +24,7 @@ class Router {
$class = ucfirst($_POST['endpoint']);
$endpoint = __NAMESPACE__ . "\\" . $class;
$method = $_POST['method'];
$data = isset($_POST['data']) ? $_POST['data'] : array();
$data = isset($_POST['data']) ? stripslashes_deep($_POST['data']) : array();
$endpoint = new $endpoint();
$endpoint->$method($data);
}