X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fbookmarklet.php;h=be3e1fd33670e1a5638b3f42a55a6fe9fd9ea2c8;hb=c4038e7af15442d8bca8c7d7818ffbb9b02a0521;hp=e1ae9aa64ce60dd94119865d570d8962e773e169;hpb=18fd86f51efc8c505393a5219c921204e18d0392;p=friendica.git diff --git a/mod/bookmarklet.php b/mod/bookmarklet.php index e1ae9aa64c..be3e1fd336 100644 --- a/mod/bookmarklet.php +++ b/mod/bookmarklet.php @@ -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"])) {