From de65d43e2217217f12c57e00c60700a555b5f58a Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 12 Mar 2013 14:08:04 -0400 Subject: [PATCH] CRM-11823 - D6 - Warn during upgrade if the 'preprocess function' for outputing JS/CSS is registered. (It's needed in the AJAX upgrade UI.) --- CRM/Upgrade/Incremental/php/FourThree.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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))'); + } + } } /** -- 2.25.1