mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Fix substitution route
This commit is contained in:
@@ -150,6 +150,7 @@ class Tools implements ControllerProviderInterface
|
||||
{
|
||||
$success = false;
|
||||
$errorMessage = "";
|
||||
$fileName = null;
|
||||
|
||||
if ($file = $request->files->get('newHD'))
|
||||
{
|
||||
@@ -187,6 +188,7 @@ class Tools implements ControllerProviderInterface
|
||||
{
|
||||
$errorMessage = _('file is not valid');
|
||||
}
|
||||
}
|
||||
|
||||
$template = 'prod/actions/Tools/iframeUpload.html.twig';
|
||||
$var = array(
|
||||
@@ -194,8 +196,12 @@ class Tools implements ControllerProviderInterface
|
||||
, 'fileName' => $fileName
|
||||
, 'errorMessage' => $errorMessage
|
||||
);
|
||||
|
||||
return new Response($app['Core']->getTwig()->render($template, $var));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
});
|
||||
|
||||
$controllers->post('/chgthumb/', function(Application $app, Request $request)
|
||||
@@ -251,7 +257,7 @@ class Tools implements ControllerProviderInterface
|
||||
|
||||
$controllers->post('/thumb-extractor/confirm-box/', function(Application $app, Request $request)
|
||||
{
|
||||
$return = array('error' => false, 'datas' =>'');
|
||||
$return = array('error' => false, 'datas' => '');
|
||||
$template = 'prod/actions/Tools/confirm.html.twig';
|
||||
|
||||
try
|
||||
|
Reference in New Issue
Block a user