diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/like.php | 6 | ||||
-rw-r--r-- | mod/wall_upload.php | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/mod/like.php b/mod/like.php index 966fe500b..287630212 100644 --- a/mod/like.php +++ b/mod/like.php @@ -19,14 +19,10 @@ function like_content(&$a) { switch($verb) { case 'like': - $activity = ACTIVITY_LIKE; - break; - case 'dislike': - $activity = ACTIVITY_DISLIKE; - break; case 'unlike': $activity = ACTIVITY_LIKE; break; + case 'dislike': case 'undislike': $activity = ACTIVITY_DISLIKE; break; diff --git a/mod/wall_upload.php b/mod/wall_upload.php index dd2197d7c..b34f2cf6b 100644 --- a/mod/wall_upload.php +++ b/mod/wall_upload.php @@ -55,7 +55,7 @@ function wall_upload_post(&$a) { if(($maximagesize) && ($filesize > $maximagesize)) { echo sprintf( t('Image exceeds size limit of %d'), $maximagesize) . EOL; @unlink($src); - return; + killme(); } $imagedata = @file_get_contents($src); |