]> git.mxchange.org Git - friendica.git/blobdiff - mod/like.php
Catch HTTPExceptions in App::runFrontend()
[friendica.git] / mod / like.php
index 97eaca163be125d9e24f3e30da6fe02172e7808d..7ce7b1a1b912b9b1341db081e20aa6c67f766216 100644 (file)
@@ -5,8 +5,6 @@ use Friendica\Core\System;
 use Friendica\Model\Item;
 use Friendica\Util\Strings;
 
-require_once 'include/items.php';
-
 function like_content(App $a) {
        if (!local_user() && !remote_user()) {
                return false;
@@ -27,7 +25,7 @@ function like_content(App $a) {
        }
 
        // See if we've been passed a return path to redirect to
-       $return_path = ((x($_REQUEST,'return')) ? $_REQUEST['return'] : '');
+       $return_path = defaults($_REQUEST, 'return', '');
 
        like_content_return($a, $return_path);
        killme(); // NOTREACHED