mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
[ticket/15311] Change service and method name
PHPBB3-15311
This commit is contained in:
@@ -240,7 +240,7 @@ class upload
|
||||
{
|
||||
$source = $this->file->get('filename');
|
||||
$destination_name = 'thumb_' . $this->file->get('realname');
|
||||
$destination = $this->temp->get_temp_dir() . '/' . $destination_name;
|
||||
$destination = $this->temp->get_dir() . '/' . $destination_name;
|
||||
|
||||
if (create_thumbnail($source, $destination, $this->file->get('mimetype')))
|
||||
{
|
||||
|
@@ -164,7 +164,7 @@ abstract class base_extractor implements extractor_interface
|
||||
|
||||
if ($store === true)
|
||||
{
|
||||
$file = $this->temp->get_temp_dir() . '/' . $filename . $ext;
|
||||
$file = $this->temp->get_dir() . '/' . $filename . $ext;
|
||||
|
||||
$this->fp = $open($file, 'w');
|
||||
|
||||
|
@@ -146,7 +146,7 @@ class remote extends base
|
||||
|
||||
$data = $response->getBody();
|
||||
|
||||
$filename = tempnam($this->temp->get_temp_dir(), unique_id() . '-');
|
||||
$filename = tempnam($this->temp->get_dir(), unique_id() . '-');
|
||||
|
||||
if (!($fp = @fopen($filename, 'wb')))
|
||||
{
|
||||
|
@@ -145,7 +145,7 @@ class remote_storage extends base
|
||||
|
||||
$data = $response->getBody();
|
||||
|
||||
$filename = tempnam($this->temp->get_temp_dir(), unique_id() . '-');
|
||||
$filename = tempnam($this->temp->get_dir(), unique_id() . '-');
|
||||
|
||||
if (!($fp = @fopen($filename, 'wb')))
|
||||
{
|
||||
|
@@ -16,7 +16,7 @@ namespace phpbb\filesystem;
|
||||
class temp
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
* @var string Temporary directory path
|
||||
*/
|
||||
protected $temp_dir;
|
||||
|
||||
@@ -47,7 +47,7 @@ class temp
|
||||
*
|
||||
* @return string returns the directory
|
||||
*/
|
||||
public function get_temp_dir()
|
||||
public function get_dir()
|
||||
{
|
||||
return $this->temp_dir;
|
||||
}
|
||||
|
Reference in New Issue
Block a user