One problem on D6 was determining which file functions saved things to disk and which did things with filename strings.

It looks like D7 has made this more consistent and that the pattern is:
- file_create_FOO: does string things with names
- file_save_FOO: save data to disk

file_create_htaccess is an exception to this rule, however. For consistency it would be better renamed file_save_htaccess

Comments

joachim’s picture

Status: Active » Needs review
StatusFileSize
new1.97 KB
klausi’s picture

Version: 7.x-dev » 8.x-dev

Too late for d7, because we are after API freeze.

pillarsdotnet’s picture

Status: Needs review » Needs work

The last submitted patch, 613936.drupal.file_create_htaccess.patch, failed testing.

joachim’s picture

Status: Needs work » Needs review
StatusFileSize
new1.71 KB

Rerolled.

pillarsdotnet’s picture

dave reid’s picture

Status: Needs review » Reviewed & tested by the community

Seems reasonable considering file_create_filename() and file_create_url() are string operations while file_save_data() and file_save_upload() work with the file system itself. We'd need to make sure to document this in the 7/8 upgrade docs as well.

catch’s picture

Tagging as API change and pre-emptively tagging for docs.

catch’s picture

Not tagging this, but cross-linking #1221904: RFC: forwards compatibility in D7 / 'backports' defgroup to discuss possible ways to backport this.

pillarsdotnet’s picture

catch’s picture

Category: bug » task
xjm’s picture

Tagging issues not yet using summary template.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x. Nice little clean-up. Consistency is good.

jhodgdon’s picture

Status: Fixed » Needs work

If this was an API change, then doesn't it need a change node? None is listed in the sidebar.

catch’s picture

Priority: Normal » Critical
Status: Needs work » Active

Bumping to critical and active for the change notification.

catch’s picture

Title: file_create_htaccess has an inconsistent name » API change notification for file_create_htaccess has an inconsistent name
webchick’s picture

Issue tags: +Novice

And since adding that summary is relatively easy, tagging as Novice.

jhodgdon’s picture

Title: API change notification for file_create_htaccess has an inconsistent name » API change notification needed for: file_create_htaccess has an inconsistent name

I was confused by this issue title (it looked like it was saying the change notification had an inconsistent name!).

kathyh’s picture

Change record created.

catch’s picture

Title: API change notification needed for: file_create_htaccess has an inconsistent name » file_create_htaccess has an inconsistent name
Status: Active » Fixed

Thanks! I think we can mark this fixed then.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

xjm’s picture