diff options
Diffstat (limited to 'modules/update/update.module')
-rw-r--r-- | modules/update/update.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/update/update.module b/modules/update/update.module index 204047e8c..855f73704 100644 --- a/modules/update/update.module +++ b/modules/update/update.module @@ -191,7 +191,7 @@ function update_theme() { function update_requirements($phase) { if ($phase == 'runtime') { if ($available = update_get_available(FALSE)) { - include_once './modules/update/update.compare.inc'; + module_load_include('inc', 'update', 'update.compare'); $data = update_calculate_project_data($available); // First, populate the requirements for core: $requirements['update_core'] = _update_requirement_check($data['drupal'], 'core'); @@ -337,7 +337,7 @@ function _update_no_data() { * @see update_get_projects() */ function update_get_available($refresh = FALSE) { - include_once './modules/update/update.compare.inc'; + module_load_include('inc', 'update', 'update.compare'); $available = array(); // First, make sure that none of the .info files have a change time @@ -386,7 +386,7 @@ function update_invalidate_cache() { * Wrapper to load the include file and then refresh the release data. */ function update_refresh() { - include_once './modules/update/update.fetch.inc'; + module_load_include('inc', 'update', 'update.fetch'); return _update_refresh(); } |