]> git.mxchange.org Git - friendica.git/blobdiff - mod/starred.php
Update Addon functions and calls
[friendica.git] / mod / starred.php
index e1b38cfc4c9133edf547eeb59303ec81f2b24aec..5cd9c0fe18768a2a9b9a701e0bf180c6ec1d0652 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\System;
+use Friendica\Database\DBM;
 
 function starred_init(App $a) {
 
@@ -22,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();
        }
 
@@ -48,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