make use of str_starts_with / str_ends_with / str_contains
This commit is contained in:
@ -55,7 +55,7 @@ class CustomHtmlHeaders extends Extension
|
||||
$sitename_in_title = $config->get_string("sitename_in_title");
|
||||
|
||||
// sitename is already in title (can occur on index & other pages)
|
||||
if (strstr($page->title, $site_title)) {
|
||||
if (str_contains($page->title, $site_title)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user