Skip to content
Snippets Groups Projects
Commit f7251b5c authored by Alexandre Bourget's avatar Alexandre Bourget
Browse files

WEBSITE: Fix image display

parent e5328775
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ endif::backend-xhtml11[]
<a id="{id}"></a>
<div class="content">
<a class="image" href="{link#}">
<img src="index.php?i={target}" alt="{1={target}}"{1? title="{1}"}{width? width="{width}"}{height? height="{height}"}/>
<img src="index.php?img={target}" alt="{1={target}}"{1? title="{1}"}{width? width="{width}"}{height? height="{height}"}/>
{link#}</a>
</div>
<div class="image-title">{title}</div>
......
......@@ -10,8 +10,8 @@ require_once('sflphone.funcs.php');
// We've requested an image, fetch it, and send it.
if (defined($_REQUEST['i'])) {
$img = $_REQUEST['i'];
if (isset($_REQUEST['img'])) {
$img = $_REQUEST['img'];
switch(strtolower(substr($img, -3))) {
case 'jpg':
header("Content-Type: image/jpeg");
......@@ -26,7 +26,8 @@ if (defined($_REQUEST['i'])) {
break;
}
show_page($img);
show_page($img, FALSE);
exit();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment