Coding standards
This commit is contained in:
parent
4206c5d363
commit
5ddd2f3ab5
1 changed files with 2 additions and 1 deletions
|
@ -40,10 +40,11 @@ class Rules extends BaseApi
|
||||||
public static function rawContent(array $parameters = [])
|
public static function rawContent(array $parameters = [])
|
||||||
{
|
{
|
||||||
$rules = [];
|
$rules = [];
|
||||||
$id = 0;
|
$id = 0;
|
||||||
|
|
||||||
if (DI::config()->get('system', 'tosdisplay')) {
|
if (DI::config()->get('system', 'tosdisplay')) {
|
||||||
$html = BBCode::convert(DI::config()->get('system', 'tostext'), false, BBCode::EXTERNAL);
|
$html = BBCode::convert(DI::config()->get('system', 'tostext'), false, BBCode::EXTERNAL);
|
||||||
|
|
||||||
$msg = HTML::toPlaintext($html, 0, true);
|
$msg = HTML::toPlaintext($html, 0, true);
|
||||||
foreach (explode("\n", $msg) as $line) {
|
foreach (explode("\n", $msg) as $line) {
|
||||||
$line = trim($line);
|
$line = trim($line);
|
||||||
|
|
Loading…
Reference in a new issue