Skip to content
Snippets Groups Projects
Commit 34a6e7da authored by Rodrigo Sussulini's avatar Rodrigo Sussulini Committed by Nikolay Lobachev
Browse files

Issue #3083060 by rsussulini, LOBsTerr: Function drupal_strtolower deprecated in Drupal 8.6.0

parent d00c40c4
No related branches found
No related tags found
No related merge requests found
......@@ -1262,7 +1262,7 @@ class SuperfishBlock extends SystemMenuBlock {
case 1:
$sfplugins['touchscreen']['mode'] = 'useragent_custom';
$tsual = drupal_strtolower($this->configuration['touchual']);
$tsual = mb_strtolower($this->configuration['touchual']);
if (strpos($tsual, '*')) {
$tsual = str_replace('*', '|', $tsual);
}
......@@ -1275,7 +1275,7 @@ class SuperfishBlock extends SystemMenuBlock {
// Server-side.
case 1:
if (isset($_SERVER['HTTP_USER_AGENT'])) {
$hua = drupal_strtolower($_SERVER['HTTP_USER_AGENT']);
$hua = mb_strtolower($_SERVER['HTTP_USER_AGENT']);
switch ($tsua) {
// Use the pre-defined list of mobile UA strings.
case 0:
......@@ -1289,7 +1289,7 @@ class SuperfishBlock extends SystemMenuBlock {
// Use the custom list of UA strings.
case 1:
$tsual = drupal_strtolower($this->configuration['touchual']);
$tsual = mb_strtolower($this->configuration['touchual']);
$tsuac = [];
if (strpos($tsual, '*')) {
$tsual = explode('*', $tsual);
......@@ -1351,7 +1351,7 @@ class SuperfishBlock extends SystemMenuBlock {
case 1:
$sfplugins['smallscreen']['mode'] = 'useragent_custom';
$ssual = drupal_strtolower($this->configuration['smallual']);
$ssual = mb_strtolower($this->configuration['smallual']);
if (strpos($ssual, '*')) {
$ssual = str_replace('*', '|', $ssual);
}
......@@ -1364,7 +1364,7 @@ class SuperfishBlock extends SystemMenuBlock {
// Server-side.
case 1:
if (isset($_SERVER['HTTP_USER_AGENT'])) {
$hua = drupal_strtolower($_SERVER['HTTP_USER_AGENT']);
$hua = mb_strtolower($_SERVER['HTTP_USER_AGENT']);
switch ($ssua) {
// Use the pre-defined list of mobile UA strings.
case 0:
......@@ -1376,7 +1376,7 @@ class SuperfishBlock extends SystemMenuBlock {
// Use the custom list of UA strings.
case 1:
$ssual = $this->configuration['smallual'];
$ssual = drupal_strtolower($ssual);
$ssual = mb_strtolower($ssual);
$ssuac = [];
if (strpos($ssual, '*')) {
$ssual = explode('*', $ssual);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment