]> git.mxchange.org Git - friendica.git/blobdiff - mod/like.php
added spaces + used x ()
[friendica.git] / mod / like.php
index ef483a1f9eed3ca264086edc3d37d77b3380504d..1f6a233f3dc26599f8a37152ea71f0fef276952b 100755 (executable)
@@ -5,8 +5,7 @@ require_once('include/bbcode.php');
 require_once('include/items.php');
 require_once('include/like.php');
 
-if(! function_exists('like_content')) {
-function like_content(&$a) {
+function like_content(App $a) {
        if(! local_user() && ! remote_user()) {
                return false;
        }
@@ -25,15 +24,15 @@ function like_content(&$a) {
        // See if we've been passed a return path to redirect to
        $return_path = ((x($_REQUEST,'return')) ? $_REQUEST['return'] : '');
 
-       like_content_return($a->get_baseurl(), $return_path);
+       like_content_return(App::get_baseurl(), $return_path);
        killme(); // NOTREACHED
 //     return; // NOTREACHED
 }
-}
+
 
 // Decide how to return. If we were called with a 'return' argument,
 // then redirect back to the calling page. If not, just quietly end
-if(! function_exists('like_content_return')) {
+
 function like_content_return($baseurl, $return_path) {
 
        if($return_path) {
@@ -46,4 +45,4 @@ function like_content_return($baseurl, $return_path) {
 
        killme();
 }
-}
+