mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-16 14:46:28 +02:00
[ticket/14180] Use unix line endings in type_foo
PHPBB3-14180
This commit is contained in:
@ -1,31 +1,31 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* This file is part of the phpBB Forum Software package.
|
* This file is part of the phpBB Forum Software package.
|
||||||
*
|
*
|
||||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||||
*
|
*
|
||||||
* For full copyright and license information, please see
|
* For full copyright and license information, please see
|
||||||
* the docs/CREDITS.txt file.
|
* the docs/CREDITS.txt file.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpbb\files\types;
|
namespace phpbb\files\types;
|
||||||
|
|
||||||
class foo extends \phpbb\files\types\remote
|
class foo extends \phpbb\files\types\remote
|
||||||
{
|
{
|
||||||
static public $tempnam_path;
|
static public $tempnam_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
function tempnam($one, $two)
|
function tempnam($one, $two)
|
||||||
{
|
{
|
||||||
if (empty(foo::$tempnam_path))
|
if (empty(foo::$tempnam_path))
|
||||||
{
|
{
|
||||||
return \tempnam($one, $two);
|
return \tempnam($one, $two);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return foo::$tempnam_path;
|
return foo::$tempnam_path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user