Found some depracated custom code referencing custom_theme, so did a grep for the global and only place referencing it was ctools. Looks like the new way is menu_get_custom_theme()

d6 checking custom_theme: https://api.drupal.org/api/drupal/includes%21theme.inc/function/init_the...
d7 checking menu_get_custom_theme: https://api.drupal.org/api/drupal/includes%21theme.inc/function/drupal_t...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hefox’s picture

hefox’s picture

Issue summary: View changes

Chris Matthews’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The 5 year old patch to theme.inc does not apply to the latest ctools 7.x-1.x-dev so needs a reroll.

Checking patch plugins/access/theme.inc...
error: while searching for:
  if (!empty($GLOBALS['theme'])) {
    $theme = $GLOBALS['theme'];
  }
  else if (!empty($GLOBALS['custom_theme'])) {
    $theme = $GLOBALS['custom_theme'];
  }
  else if (!empty($GLOBALS['user']->theme)) {
    $theme = $GLOBALS['user']->theme;

error: patch failed: plugins/access/theme.inc:44
error: plugins/access/theme.inc: patch does not apply
silvi.addweb’s picture

Status: Needs work » Needs review
FileSize
571 bytes

@Chris Matthews, Please find my attached patch that rerolls as per your mentioned requirement(version 7.x-1.x-dev). Hope this helps you. Feel free & kindly provide your feedback on the same.

Thanks!..

Chris Matthews’s picture

Issue tags: -Needs reroll