mirror of
https://github.com/friendica/friendica
synced 2025-04-24 02:30:13 +00:00
functions moved to HTML class
update function calls to moved class.
This commit is contained in:
parent
e31dde6084
commit
a71eb1d127
8 changed files with 19 additions and 14 deletions
|
@ -1046,7 +1046,7 @@ function api_statuses_mediap($type)
|
|||
//$txt = urldecode(requestdata('status'));
|
||||
|
||||
if ((strpos($txt, '<') !== false) || (strpos($txt, '>') !== false)) {
|
||||
$txt = html2bb_video($txt);
|
||||
$txt = HTML::htmlToBBVideo($txt);
|
||||
$config = HTMLPurifier_Config::createDefault();
|
||||
$config->set('Cache.DefinitionImpl', null);
|
||||
$purifier = new HTMLPurifier($config);
|
||||
|
@ -1092,7 +1092,7 @@ function api_statuses_update($type)
|
|||
if (requestdata('htmlstatus')) {
|
||||
$txt = requestdata('htmlstatus');
|
||||
if ((strpos($txt, '<') !== false) || (strpos($txt, '>') !== false)) {
|
||||
$txt = html2bb_video($txt);
|
||||
$txt = HTML::htmlToBBVideo($txt);
|
||||
|
||||
$config = HTMLPurifier_Config::createDefault();
|
||||
$config->set('Cache.DefinitionImpl', null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue