Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
views_megarow_get_page_theme function doesn't take into account language prefix in url path, e.g.:
for "http://site/admin/..." pages this function returns admin theme, but
for "http://site/ru/admin/..." pages it returns default theme.
To fix this I added after this line:
$path = substr($url['path'], strlen($GLOBALS['base_path']));
this code:
$path = strpos($path, $GLOBALS['language']->prefix . '/') == 0 ? substr($path, strlen($GLOBALS['language']->prefix . '/')) : $path;
Comments