mirror of
https://github.com/friendica/friendica
synced 2024-11-18 13:03:41 +00:00
Simplify plaintext creation
This commit is contained in:
parent
08dafd6d70
commit
01bbf40418
1 changed files with 1 additions and 3 deletions
|
@ -671,9 +671,7 @@ class System
|
|||
|
||||
if (DI::config()->get('system', 'tosdisplay')) {
|
||||
$rulelist = DI::config()->get('system', 'tosrules') ?: DI::config()->get('system', 'tostext');
|
||||
$html = BBCode::convertForUriId(User::getSystemUriId(), $rulelist, BBCode::EXTERNAL);
|
||||
|
||||
$msg = HTML::toPlaintext($html, 0, true);
|
||||
$msg = BBCode::toPlaintext($rulelist, false);
|
||||
foreach (explode("\n", trim($msg)) as $line) {
|
||||
$line = trim($line);
|
||||
if ($line) {
|
||||
|
|
Loading…
Reference in a new issue