diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-30 10:14:42 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-30 10:14:42 +0000 |
commit | ef1235cc0a97305216d8987e3bd8459d30cbe5df (patch) | |
tree | fb22189c3d715f210a97128e08b6bd5f8fa92ebd /modules/update/update.module | |
parent | cdbcbac8b0c626af1e5ce04a0cdf7853af764fef (diff) | |
download | brdo-ef1235cc0a97305216d8987e3bd8459d30cbe5df.tar.gz brdo-ef1235cc0a97305216d8987e3bd8459d30cbe5df.tar.bz2 |
#207863 by mikey_p, Pancho: use module_load_include() as intended
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(); } |