Alterations in Drupal

From WolfTech
Revision as of 10:53, 22 January 2009 by Rjhodson (talk | contribs) (New page: All edits are made to core Drupal files. Files with extension type .inc are generally found in the includes folder of the site. ==image.inc== (line 117) change: <pre> if (!is_file($file...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

All edits are made to core Drupal files. Files with extension type .inc are generally found in the includes folder of the site.

image.inc

(line 117)

change:

if (!is_file($file)) {

to:

if (!is_uploaded_file($file) && !is_file($file)) {

file.inc

(line 572)

change:

if (!move_uploaded_file($_FILES['files']['tmp_name'][$source], $file->filepath)) {

to:

if (!@move_uploaded_file($_FILES['files']['tmp_name'][$source], $file->filepath)) {