]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Like.php
Merge pull request #7828 from nupplaphil/task/move_enotify
[friendica.git] / src / Module / Like.php
index a43e38045c8c611213a81ba7b240ebd2a98603c9..1c98cbc38c6ba6ef0a4c8c0c2df043694f7d3a14 100644 (file)
@@ -13,7 +13,7 @@ use Friendica\Util\Strings;
  */
 class Like extends BaseModule
 {
-       public static function rawContent()
+       public static function rawContent(array $parameters = [])
        {
                if (!Session::isAuthenticated()) {
                        throw new HTTPException\ForbiddenException();
@@ -36,7 +36,7 @@ class Like extends BaseModule
 
                // Decide how to return. If we were called with a 'return' argument,
                // then redirect back to the calling page. If not, just quietly end
-               $returnPath = defaults($_REQUEST, 'return', '');
+               $returnPath = $_REQUEST['return'] ?? '';
 
                if (!empty($returnPath)) {
                        $rand = '_=' . time();