From: Tim Otten Date: Tue, 12 Mar 2013 18:08:04 +0000 (-0400) Subject: CRM-11823 - D6 - Warn during upgrade if the 'preprocess function' for outputing JS... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=de65d43e2217217f12c57e00c60700a555b5f58a;p=civicrm-core.git CRM-11823 - D6 - Warn during upgrade if the 'preprocess function' for outputing JS/CSS is registered. (It's needed in the AJAX upgrade UI.) --- diff --git a/CRM/Upgrade/Incremental/php/FourThree.php b/CRM/Upgrade/Incremental/php/FourThree.php index db6c482c09..bbe9a35d6e 100644 --- a/CRM/Upgrade/Incremental/php/FourThree.php +++ b/CRM/Upgrade/Incremental/php/FourThree.php @@ -62,6 +62,17 @@ class CRM_Upgrade_Incremental_php_FourThree { return FALSE; } } + if ($rev == '4.3.beta4' && CRM_Utils_Constant::value('CIVICRM_UF', FALSE) == 'Drupal6') { + // CRM-11823 - Make sure the D6 HTML HEAD technique will work on upgrade pages + theme('item_list', array()); // force-load theme registry + $theme_registry = theme_get_registry(); + if ( + !isset($theme_registry['page']['preprocess functions']) || + FALSE === array_search('civicrm_preprocess_page_inject', $theme_registry['page']['preprocess functions']) + ) { + CRM_Core_Error::fatal('Please reset the Drupal cache (Administer => Site Configuration => Performance => Clear cached data))'); + } + } } /**