I noticed that some sites are not reporting the drupal core version..
The logic is the following:
$system_modules = system_list('module_enabled');
if (strtolower($module_info->info['package']) == "core") {
// if this is part of a project, only set the project.
if(isset($module_info->info['project'])) {
$res['core'][$module_info->info['project']] = array("version" => $module_info->info['version']);
} else {
$res['core'][$module] = array("version" => $module_info->info['version']);
}
}
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2271197-Sam-1.patch | 592 bytes | sam hermans |
Comments
Comment #1
sam hermans commentedComment #2
dmitrii commentedPlease take a look at this patch.
Comment #3
sam hermans commentedPatch seems okay, but how could i replicate this install ?
Comment #4
dmitrii commentedI don't think it's possible to reproduce.
Patch is applied to system status module at site 10128.
I'll try to find and add sites with various install profiles to your service.
Comment #5
dmitrii commentedmisprint fixed
Comment #6
dmitrii commentedFYI: I've installed the module on site with other custom install profile. It's report drupal version correctly without patch.
Site id is 10168
Comment #7
sam hermans commentedI would like to propose the following patch for D7 (7.x.2.x branch) .. i think that using the DEFINE from bootstrap will be the best way to guess the currently installed version..
We will have to find a solution for D6 and D8 as they don't have this.
Comment #8
sam hermans commentedComment #9
sam hermans commentedAdded in the release 7.x-2.7