Projet

Général

Profil

Révision 6ff32cea

Ajouté par Florent Torregrosa il y a environ 9 ans

Update core to 7.36

Voir les différences:

drupal7/modules/system/system.install
2854 2854
        // We will convert filepaths to URI using the default scheme
2855 2855
        // and stripping off the existing file directory path.
2856 2856
        $file['uri'] = $scheme . preg_replace('!^' . preg_quote($basename) . '!', '', $file['filepath']);
2857
        $file['uri'] = file_stream_wrapper_uri_normalize($file['uri']);
2857
        // Normalize the URI but don't call file_stream_wrapper_uri_normalize()
2858
        // directly, since that is a higher-level API function which invokes
2859
        // hooks while validating the scheme, and those will not work during
2860
        // the upgrade. Instead, use a simpler version that just assumes the
2861
        // scheme from above is already valid.
2862
        if (($file_uri_scheme = file_uri_scheme($file['uri'])) && ($file_uri_target = file_uri_target($file['uri']))) {
2863
          $file['uri'] = $file_uri_scheme . '://' . $file_uri_target;
2864
        }
2858 2865
        unset($file['filepath']);
2859 2866
        // Insert into the file_managed table.
2860 2867
        // Each fid should only be stored once in file_managed.

Formats disponibles : Unified diff