I can not understand the mistake.
Multidomain site. Lots of things is handled through Ajax.
Each domain has its own template and its styles.
When you call Ajax with third-level domain, podgruzhaetsya style of the main domain.
How do I fix this?
Module work - Domain Access

Comments

ZhukV’s picture

Function domain_theme_custom_theme (Implementation of hook_custom_theme) for ajax delivery callback returned NULL, but returned now active theme for domain.
hack module:

/**
 * Implements hook_init()
 */
function domain_theme_custom_theme() {
  $_domain = domain_get_domain();
  // Allow the admin theme and other custom themes to be retained.
  $item = menu_get_item();
  // Fix bug
  if (!empty($item['theme_callback']) && $item['theme_callback'] != 'ajax_base_page_theme') {
    return;
  }
  // Assign the theme selected, based on the active domain.
  $theme = domain_theme_lookup($_domain['domain_id']);
  // The above returns -1 on failure.
  if ($theme != -1) {
    domain_theme_set_variables($theme);
    return $theme['theme'];
  }
}