From ef1235cc0a97305216d8987e3bd8459d30cbe5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 30 Jan 2008 10:14:42 +0000 Subject: #207863 by mikey_p, Pancho: use module_load_include() as intended --- modules/update/update.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/update/update.module') 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(); } -- cgit v1.2.3