From bf46702f74f96519b646027e6a83836f5678719e Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 1 Mar 2012 12:45:41 +0000 Subject: [PATCH] --- inc/extranet/Controlleur/class.extranet.tools.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/extranet/Controlleur/class.extranet.tools.php b/inc/extranet/Controlleur/class.extranet.tools.php index 5c62e33d3..0b1af334a 100644 --- a/inc/extranet/Controlleur/class.extranet.tools.php +++ b/inc/extranet/Controlleur/class.extranet.tools.php @@ -32,8 +32,8 @@ class extranetTools { $url = $_GET['u']; $hash = sha1($url); - $web = '/tube/' . $hash . '/'; - $dir = ROOT . $web; + $web = '/tube/' . $hash . '/'; + $dir = ROOT . $web; if (!file_exists($dir)) { mkdir($dir, 0777, true); @@ -57,7 +57,7 @@ class extranetTools { if (file_exists($dir . 'video.jpg')) { $poster = $web . 'video.jpg'; - $fv['poster'] = $poster; + $fv['poster'] = 'http://'.$_SERVER['HTTP_HOST'].$poster; } $res = '