diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-02 19:06:36 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-02 19:06:36 -0700 |
commit | 93d0ef4042bdfe06b77cdbe56ec4e55143e4fc1e (patch) | |
tree | 87dad282e59c5472ee878f6faf0e96630c18c3c9 /mod | |
parent | 3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e (diff) | |
download | volse-hubzilla-93d0ef4042bdfe06b77cdbe56ec4e55143e4fc1e.tar.gz volse-hubzilla-93d0ef4042bdfe06b77cdbe56ec4e55143e4fc1e.tar.bz2 volse-hubzilla-93d0ef4042bdfe06b77cdbe56ec4e55143e4fc1e.zip |
fixup image on wall
Diffstat (limited to 'mod')
-rw-r--r-- | mod/dfrn_poll.php | 2 | ||||
-rw-r--r-- | mod/wall_upload.php | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index e3da6c952..dadcd3148 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -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(); diff --git a/mod/wall_upload.php b/mod/wall_upload.php index d2e732545..bd7cf8560 100644 --- a/mod/wall_upload.php +++ b/mod/wall_upload.php @@ -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 }
\ No newline at end of file |