In file at_core/inc/plugins.inc return value of drupal_static function isn't gotten by reference.

function at_get_plugins($theme_name) {
  $plugins = drupal_static(__FUNCTION__, array());
  if (empty($plugins)) {
    if ($plugins_cache = cache_get('at_get_plugins_plugins')) {
      $plugins = $plugins_cache->data;
    }
    else {
      ...
    }

It causes troubles if drupal cache is off. When adaptivetheme appiarence form is submited, the huge of PHP warnings takes place because $plugins_list isn't defined.

It is actual for dev version, but string numbers in the patch don't pass for it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jeff Burnz’s picture

Version: 7.x-3.1 » 7.x-3.x-dev
Status: Needs review » Fixed

Far out, good catch, thanks for the patch!

Committed: https://drupal.org/commitlog/commit/10872/a75a1631e6f100e234607d038d2c45...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.