diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index b99c62731fe5f..5c6488cbc0fb9 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -284,7 +284,7 @@ public function __construct($renderAs, $appId = '') { } else { $suffix = $this->getVersionHashSuffix($web, $file); - if (!strpos($file, '?v=')) { + if (!str_contains($file, '?v=')) { $this->append('cssfiles', $web.'/'.$file . $suffix); } else { $this->append('cssfiles', $web.'/'.$file . '-' . substr($suffix, 3));