mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
@@ -38,7 +38,7 @@ abstract class AbstractDelivery implements ControllerProviderInterface
|
||||
|
||||
$response = $app['phraseanet.file-serve']->deliverFile($pathOut, $file->get_file(), $disposition, $file->get_mime());
|
||||
|
||||
if (in_array(array('document', 'preview'), $subdef)) {
|
||||
if (in_array($subdef, array('document', 'preview'))) {
|
||||
$response->setPrivate();
|
||||
$this->logView($app, $record, $request);
|
||||
} elseif ($subdef !== 'thumbnail') {
|
||||
|
||||
@@ -880,10 +880,12 @@ class Login implements ControllerProviderInterface
|
||||
|
||||
$width = $height = null;
|
||||
if ($app['request']->cookies->has('screen')) {
|
||||
$data = explode('x', $app['request']->cookies->get('screen'));
|
||||
$data = array_filter((explode('x', $app['request']->cookies->get('screen', ''))));
|
||||
if (count($data) === 2) {
|
||||
$width = $data[0];
|
||||
$height = $data[1];
|
||||
}
|
||||
}
|
||||
$session->setIpAddress($app['request']->getClientIp())
|
||||
->setScreenHeight($height)
|
||||
->setScreenWidth($width);
|
||||
|
||||
@@ -106,7 +106,7 @@ class Firewall
|
||||
{
|
||||
$params = array();
|
||||
if (null !== $request) {
|
||||
$params['redirect'] = '..' . $request->getPathInfo();
|
||||
$params['redirect'] = '..' . $request->getPathInfo().'?'.$request->getQueryString();
|
||||
}
|
||||
if (!$this->app['authentication']->isAuthenticated()) {
|
||||
return new RedirectResponse($this->app->path('homepage', $params));
|
||||
|
||||
@@ -761,7 +761,7 @@ $(document).ready(function () {
|
||||
var parent = searchForm.parent();
|
||||
|
||||
var options = {
|
||||
size: 'Full',
|
||||
size: (bodySize.x - 120)+'x'+(bodySize.y - 120),
|
||||
loading: false,
|
||||
closeCallback: function (dialog) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user