<?php

/**
 * Fetches the properties edit form for the file manager.
 */

$page->layout = false;

header ('Content-Type: application/json');

$file = $_POST['file'];

$out = array (
	'title' => __ ('Properties'),
	'body' => $tpl->render (
		'filemanager/properties',
		array (
			'file' => $file,
			'desc' => FileManager::prop ($file, 'desc'),
			'link' => FileManager::prop ($file, 'link')
		)
	)
);

echo json_encode ($out);
