Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
98798830
Commit
98798830
authored
Oct 28, 2004
by
Steven Wittens
Browse files
#12183
: surpress php error on copy()
parent
6238bf44
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/file.inc
View file @
98798830
...
...
@@ -252,7 +252,7 @@ function file_copy(&$source, $dest = 0, $replace = FILE_EXISTS_RENAME) {
}
}
if
(
!
copy
(
$source
,
$dest
))
{
if
(
!
@
copy
(
$source
,
$dest
))
{
drupal_set_message
(
t
(
'File copy failed.'
),
'error'
);
return
0
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment