From 01bbf4041881ae06904aa5fa5dce843fe30a1e7d Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 16 Jul 2023 09:32:17 +0000 Subject: [PATCH] Simplify plaintext creation --- src/Core/System.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Core/System.php b/src/Core/System.php index 602d85c83c..f155483463 100644 --- a/src/Core/System.php +++ b/src/Core/System.php @@ -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) { -- 2.39.5