]> git.mxchange.org Git - friendica.git/blobdiff - mod/bookmarklet.php
Merge pull request #6461 from annando/contacts-post
[friendica.git] / mod / bookmarklet.php
index e1ae9aa64ce60dd94119865d570d8962e773e169..be3e1fd33670e1a5638b3f42a55a6fe9fd9ea2c8 100644 (file)
@@ -9,9 +9,7 @@ use Friendica\Core\Config;
 use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Module\Login;
-
-require_once 'include/conversation.php';
-require_once 'include/items.php';
+use Friendica\Util\Strings;
 
 function bookmarklet_init()
 {
@@ -26,8 +24,8 @@ function bookmarklet_content(App $a)
                return $o;
        }
 
-       $referer = normalise_link(defaults($_SERVER, 'HTTP_REFERER', ''));
-       $page = normalise_link(System::baseUrl() . "/bookmarklet");
+       $referer = Strings::normaliseLink(defaults($_SERVER, 'HTTP_REFERER', ''));
+       $page = Strings::normaliseLink(System::baseUrl() . "/bookmarklet");
 
        if (!strstr($referer, $page)) {
                if (empty($_REQUEST["url"])) {