diff --git a/classes/output/core_renderer.php b/classes/output/core_renderer.php index 3e58ab4f2..052155014 100644 --- a/classes/output/core_renderer.php +++ b/classes/output/core_renderer.php @@ -163,8 +163,9 @@ public function column_header_icon_link($langstring, $iconname, $url, $location $snapfeedsurlparam = isset($CFG->theme_snap_feeds_url_parameter) ? $CFG->theme_snap_feeds_url_parameter : true; if ($location == 'snapfeedsmenu') { if ($snapfeedsurlparam) { - if (str_contains($langstring, 'viewmessaging') || str_contains($langstring, 'viewmyfeedback')) { - $link = '' .$text. '' .$icon. ''; + if ((strpos($langstring, 'viewmessaging') !== false) || + (strpos($langstring, 'viewmyfeedback') !== false)) { + $link = '' .$text. '' .$icon. ''; } else { $link = '' .$text. '' .$icon. ''; }