make use of str_starts_with / str_ends_with / str_contains

This commit is contained in:
Shish
2020-10-25 19:31:58 +00:00
parent c783ff0e8d
commit 19a6b39c70
21 changed files with 42 additions and 36 deletions

View File

@ -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;
}