]> git.mxchange.org Git - friendica.git/blobdiff - mod/mood.php
extend checkbox template for customized attributes
[friendica.git] / mod / mood.php
index e80a7f0976e6550ac60c20e6b48db9fe63856472..c4d93b6de2fe4c645b087cdf0cac073b8e3411a7 100644 (file)
@@ -1,10 +1,12 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
+
 require_once('include/security.php');
 require_once('include/bbcode.php');
 require_once('include/items.php');
 
-
 function mood_init(App $a) {
 
        if (! local_user()) {
@@ -92,7 +94,7 @@ function mood_init(App $a) {
        $item_id = item_store($arr);
        if($item_id) {
                q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d",
-                       dbesc(App::get_baseurl() . '/display/' . $poster['nickname'] . '/' . $item_id),
+                       dbesc(System::baseUrl() . '/display/' . $poster['nickname'] . '/' . $item_id),
                        intval($uid),
                        intval($item_id)
                );