|
@@ -23,7 +23,7 @@ |
|
|
block discarded – undo |
|
23
|
23
|
if ($message['file'] != "") { |
|
24
|
24
|
if(substr($message['file'], -4) == "webm" || substr($message['file'], -3) == "mp4"){ |
|
25
|
25
|
$result = $result . '<div><video width="600" controls loop><source src="/images/' . $message['file'] . '" type="video/mp4"></video></div><br />'; |
|
26
|
|
- }else{ |
|
|
26
|
+ } else{ |
|
27
|
27
|
$result = $result . "<div><a href='images/" . $message['file'] . "'><img src = 'images/" . $message['file'] . "' class='message-image'/></a></div>"; |
|
28
|
28
|
} |
|
29
|
29
|
} |
Please login to merge, or discard this patch.