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']);
        }
       }

Comments

sam hermans’s picture

Priority: Normal » Major
dmitrii’s picture

StatusFileSize
new1.06 KB

Please take a look at this patch.

sam hermans’s picture

Patch seems okay, but how could i replicate this install ?

dmitrii’s picture

I 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.

dmitrii’s picture

StatusFileSize
new1.17 KB
new724 bytes

misprint fixed

dmitrii’s picture

FYI: I've installed the module on site with other custom install profile. It's report drupal version correctly without patch.
Site id is 10168

sam hermans’s picture

StatusFileSize
new592 bytes

I 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.

sam hermans’s picture

Status: Active » Needs review
sam hermans’s picture

Status: Needs review » Closed (fixed)

Added in the release 7.x-2.7