Dodaj funkcje do czyszczenia tekstu ogłoszeń oraz aktualizuj wywołania w szablonach

This commit is contained in:
2025-07-13 11:05:09 +02:00
parent fcf8af71aa
commit f43b6081c1
10 changed files with 74 additions and 11 deletions

View File

@@ -169,7 +169,7 @@
?>
<div class="content">
<?
$text = $this->advert['text'];
$text = $this -> advert['text'];
if (!$this->g_user) :
$text = preg_replace('/[a-z0-9_\-\+\.]+@[a-z0-9\-]+\.([a-z]{2,4})(?:\.[a-z]{2})?/i', ' <a href="/logowanie">Zaloguj się aby zobaczyć adres email</a> ', $text);
$text = preg_replace(
@@ -178,6 +178,7 @@
$text
);
endif;
$text = \S::clear_advert_text( $text );
echo $text;
?>
</div>