projects
/
project/filefield.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ce8e38b
)
#404306: Write a log message if a displayed file is not found.
author
Nathan Haug
Fri, 20 Mar 2009 05:12:30 +0000 (
05:12
+0000)
committer
Nathan Haug
Fri, 20 Mar 2009 05:12:30 +0000 (
05:12
+0000)
filefield_field.inc
patch
|
blob
|
blame
|
history
diff --git
a/filefield_field.inc
b/filefield_field.inc
index
babc0d7
..
4779af6
100644
(file)
--- a/
filefield_field.inc
+++ b/
filefield_field.inc
@@
-169,6
+169,11
@@
function filefield_field_sanitize($node, $field, &$items, $teaser, $page) {
}
// Add nid so formatters can create a link to the node.
$items[$delta]['nid'] = $node->nid;
+
+ // Verify the file exists on the server.
+ if (!empty($item['filepath']) && !file_exists($item['filepath'])) {
+ watchdog('filefield', 'FileField was trying to display the file %file, but it does not exist.', array('%file' => $item['filepath']));
+ }
}
}