| 953 |
// Attach previews to node |
// Attach previews to node |
| 954 |
if (is_array($_SESSION['flickrup_previews']) && count($_SESSION['flickrup_previews'])) { |
if (is_array($_SESSION['flickrup_previews']) && count($_SESSION['flickrup_previews'])) { |
| 955 |
foreach ($_SESSION['flickrup_previews'] as $fid => $file) { |
foreach ($_SESSION['flickrup_previews'] as $fid => $file) { |
|
if ($user->uid != 1) { |
|
|
// Here something.php.pps becomes something.php_.pps |
|
|
$file->filename = upload_munge_filename($file->filename, NULL, 0); |
|
|
$file->description = $file->filename; |
|
|
} |
|
| 956 |
$node->{$fieldname}[$fid] = $file; |
$node->{$fieldname}[$fid] = $file; |
| 957 |
$items[]['file'] = $file; |
$items[]['file'] = $file; |
| 958 |
} |
} |