Commit faa63d22 authored by catch's avatar catch
Browse files

Issue #1401558 by Berdir: Documentation follow-up for remove the usage...

Issue #1401558 by Berdir: Documentation follow-up for remove the usage handling logic from file_delete().
parent 9e8d1e85
......@@ -729,7 +729,7 @@ function file_usage_add(stdClass $file, $module, $type, $id, $count = 1) {
->expression('count', 'count + :count', array(':count' => $count))
->execute();
// Make sure that a used file is not permament.
// Make sure that a used file is permament.
if ($file->status != FILE_STATUS_PERMANENT) {
$file->status = FILE_STATUS_PERMANENT;
file_save($file);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment