1
1
Fork 0

fixup image on wall

This commit is contained in:
Mike Macgirvin 2010-08-02 19:06:36 -07:00
commit 93d0ef4042
6 changed files with 46 additions and 35 deletions

View file

@ -19,7 +19,7 @@ function dfrn_poll_init(&$a) {
return;
if(($dfrn_id == '*') && ($a->argc > 1) && (intval($a->argv[1]))) {
if(($dfrn_id == '*') && ($a->argc > 1)) {
$o = get_feed_for($a,'*', $a->argv[1],$last_update);
echo $o;
killme();

View file

@ -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
}