Replace *_page_info function calls with Content\PageInfo equivalent
This commit is contained in:
parent
a1d62734fa
commit
3e25fc3a72
7 changed files with 17 additions and 56 deletions
|
@ -30,6 +30,7 @@
|
|||
|
||||
use Friendica\App;
|
||||
use Friendica\Content\Item as ItemHelper;
|
||||
use Friendica\Content\PageInfo;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
|
@ -233,7 +234,7 @@ function item_post(App $a) {
|
|||
];
|
||||
}
|
||||
|
||||
$att_bbcode = add_page_info_data($attachment);
|
||||
$att_bbcode = "\n" . PageInfo::getFooterFromData($attachment);
|
||||
$body .= $att_bbcode;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Content\PageInfo;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\System;
|
||||
|
@ -177,7 +178,7 @@ function parse_url_content(App $a)
|
|||
}
|
||||
|
||||
// Format it as BBCode attachment
|
||||
$info = add_page_info_data($siteinfo);
|
||||
$info = "\n" . PageInfo::getFooterFromData($siteinfo);
|
||||
|
||||
echo $info;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue