mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
fixup image on wall
This commit is contained in:
parent
3fd4b4264e
commit
93d0ef4042
6 changed files with 46 additions and 35 deletions
|
@ -9,6 +9,9 @@ function wall_upload_post(&$a) {
|
|||
killme();
|
||||
}
|
||||
|
||||
if(! x($_FILES,'userfile'))
|
||||
killme();
|
||||
|
||||
$src = $_FILES['userfile']['tmp_name'];
|
||||
$filename = basename($_FILES['userfile']['name']);
|
||||
$filesize = intval($_FILES['userfile']['size']);
|
||||
|
@ -87,8 +90,8 @@ function wall_upload_post(&$a) {
|
|||
}
|
||||
|
||||
$basename = basename($filename);
|
||||
echo "<br /><br /><img src=\"".$a->get_baseurl(). "/photo/{$hash}-{$smallest}.jpg\" alt=\"$basename\" /><br /><br />";
|
||||
|
||||
echo "<img src=\"".$a->get_baseurl(). "/photo/{$hash}-{$smallest}.jpg\" alt=\"$basename\" />";
|
||||
killme();
|
||||
|
||||
return; // NOTREACHED
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue