]> git.mxchange.org Git - friendica.git/blobdiff - mod/starred.php
Update Addon functions and calls
[friendica.git] / mod / starred.php
index 46d3fcff66835644c0b802bfb98db8a8d3a06edf..5cd9c0fe18768a2a9b9a701e0bf180c6ec1d0652 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
+use Friendica\Database\DBM;
 
 function starred_init(App $a) {
 
@@ -21,7 +24,7 @@ function starred_init(App $a) {
                intval(local_user()),
                intval($message_id)
        );
-       if (! dbm::is_result($r)) {
+       if (! DBM::is_result($r)) {
                killme();
        }
 
@@ -47,7 +50,7 @@ function starred_init(App $a) {
                        $rand = "?$rand";
                }
 
-               goaway(App::get_baseurl() . "/" . $return_path . $rand);
+               goaway(System::baseUrl() . "/" . $return_path . $rand);
        }
 
        // the json doesn't really matter, it will either be 0 or 1