Skip to content

Commit c08fb35

Browse files
committed
[ticket/12479] Remove deprecated functions
PHPBB-12479
1 parent 9a42e2f commit c08fb35

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

files/filespec.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ public function check_content($disallowed_content)
398398
* @param bool $overwrite If set to true, an already existing file will be overwritten
399399
* @param bool $skip_image_check If set to true, the check for the file to be a valid image is skipped
400400
* @param string|bool $chmod Permission mask for chmodding the file after a successful move.
401-
* The mode entered here reflects the mode defined by {@link phpbb_chmod()}
401+
* The mode entered here reflects the mode defined by {@link \phpbb\filesystem\filesystem::phpbb_chmod()}
402402
*
403403
* @return bool True if file was moved, false if not
404404
* @access public

plupload/plupload.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,9 @@ protected function integrate_uploaded_file($form_name, $chunk, $file_path)
344344
}
345345

346346
$tmp_file = $this->temporary_filepath($upload['tmp_name']);
347+
$filesystem = new \phpbb\filesystem\filesystem();
347348

348-
if (!phpbb_is_writable($this->temporary_directory) || !move_uploaded_file($upload['tmp_name'], $tmp_file))
349+
if (!$filesystem->is_writable($this->temporary_directory) || !move_uploaded_file($upload['tmp_name'], $tmp_file))
349350
{
350351
$this->emit_error(103, 'PLUPLOAD_ERR_MOVE_UPLOADED');
351352
}

0 commit comments

Comments
 (0)