X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FBookmarklet.php;h=fab9dbc6c59e56fcc243d6744bad021b78b99c4f;hb=15caf4b3f7eacda399a56b1ad8eeb9d3257306d9;hp=a5d4801a9fb77c0a9ebab7d1e15da4ceafa65508;hpb=5dfee31108fc92a7abca5f99b8fdf1b34aec5dd5;p=friendica.git diff --git a/src/Module/Bookmarklet.php b/src/Module/Bookmarklet.php index a5d4801a9f..fab9dbc6c5 100644 --- a/src/Module/Bookmarklet.php +++ b/src/Module/Bookmarklet.php @@ -1,10 +1,29 @@ . + * + */ namespace Friendica\Module; use Friendica\BaseModule; +use Friendica\Content\PageInfo; use Friendica\Core\ACL; -use Friendica\Core\L10n; use Friendica\DI; use Friendica\Module\Security\Login; use Friendica\Network\HTTPException; @@ -37,7 +56,7 @@ class Bookmarklet extends BaseModule throw new HTTPException\BadRequestException(DI::l10n()->t('This page is missing a url parameter.')); } - $content = add_page_info($_REQUEST["url"]); + $content = "\n" . PageInfo::getFooterFromUrl($_REQUEST['url']); $x = [ 'is_owner' => true,