X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flike.php;h=7ce7b1a1b912b9b1341db081e20aa6c67f766216;hb=ed7bada71eb7e5d1c2953e94abb47b531781306d;hp=97eaca163be125d9e24f3e30da6fe02172e7808d;hpb=d577ab98eb0f28f9f807795f54c87d80ef9c0dc2;p=friendica.git diff --git a/mod/like.php b/mod/like.php index 97eaca163b..7ce7b1a1b9 100644 --- a/mod/like.php +++ b/mod/like.php @@ -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