|
@@ -152,12 +152,9 @@ switch($_['action']){
|
|
|
case 'get_part_by_id':
|
|
|
Action::write(function(&$response){
|
|
|
global $myUser,$_;
|
|
|
-
|
|
|
require_once(__DIR__.SLASH.'..'.SLASH.'hackpoint'.SLASH.'Sketch.class.php');
|
|
|
require_once(__DIR__.SLASH.'..'.SLASH.'hackpoint'.SLASH.'Resource.class.php');
|
|
|
require_once(__DIR__.SLASH.'Part.class.php');
|
|
|
-
|
|
|
-
|
|
|
$part = Part::getById($_['id'],1);
|
|
|
|
|
|
$part = !$part ? new Part() : Part::getById($_['id']);
|