Closed (outdated)
Project:
Drupal core
Version:
9.1.x-dev
Component:
file system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2010 at 06:29 UTC
Updated:
7 Jul 2020 at 08:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dwwWhoops, I meant this to be a D8 followup. ;)
Comment #2
dwwGuess these are the preferred tags. ;)
Comment #3
mlncn commentedSubscribe. :-) Awaiting D8!
Comment #4
aaron commentedsubscribe
Comment #5
pillarsdotnet commentedSo do we want to rename the variable to match the function, or do we want to rename the function to match the variable?
Comment #6
pillarsdotnet commented#5: rename-file_directory_temp-to-file_temporary_path-931794-5.patch queued for re-testing.
Comment #7
pillarsdotnet commented#5: rename-file_temporary_path-to-file_directory_temp-931794-5.patch queued for re-testing.
Comment #8
pillarsdotnet commented#5: rename-file_directory_temp-to-file_temporary_path-931794-5.patch queued for re-testing.
Comment #9
pillarsdotnet commented#5: rename-file_temporary_path-to-file_directory_temp-931794-5.patch queued for re-testing.
Comment #10
traviscarden commentedComment #13
jhedstromProbably needs to wait until 9.
Comment #14
catchhttps://api.drupal.org/api/drupal/core%21includes%21file.inc/function/fi...
We could move file_direcotry_temp() to a service method in 8.x, and potentially rename the config key with a bc layer too.
Comment #22
berdirUnpostponing, don't fully understand the problem here, but we do need a new place and name for this function anyway and it can't be FileSystem due to its dependency on the configuration system.
See also #3034072-3: Move file uri/scheme functions from file.inc and FileSystem to StreamWrapperManager (comment #3)
Comment #23
kim.pepperCreated #3039026: Deprecate file_directory_temp() and move to FileSystem service
Comment #26
quietone commentedSince file_directory_temp() has been deprecated it seems likely that this can be closed as outdated.
First check where file_directory_temp is used.
Three of the four occurrences are in the migration system, referring to a Drupal 6 source database, so those are correct and remain unchanged. The other is in a comment in sqlite/Install/Tasks.php. The full comment is
and since it is referring to a now removed function it should be removed. Removing that is not part of this issue, that can be done in a followup to #3039026: Deprecate file_directory_temp() and move to FileSystem service. But it does mean that there is the work here is outdated.
Comment #27
quietone commentedCreated a followup to remove the comment referring to file_directory_temp(). #3157370: Modify comment referring to file_directory_temp().
Adding BugSmash Initiative tag and closing as outdated, because of #3039026: Deprecate file_directory_temp() and move to FileSystem service.
Thanks to dww for the report and to pillarsdotnet for creating a patch.