1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 12:14:06 +02:00

[ticket/15392] Changed dirname(__FILE__) to __DIR__

Changed dirname(__FILE__) to __DIR__ everywhere

PHPBB3-15392
This commit is contained in:
DinHere
2017-12-03 17:19:59 +02:00
committed by Marc Alexander
parent 66cbf2607b
commit 8c9d26db1f
198 changed files with 373 additions and 373 deletions

View File

@@ -13,8 +13,8 @@
namespace phpbb\mimetype;
require_once dirname(__FILE__) . '/null_guesser.php';
require_once dirname(__FILE__) . '/incorrect_guesser.php';
require_once __DIR__ . '/null_guesser.php';
require_once __DIR__ . '/incorrect_guesser.php';
function function_exists($name)
{
@@ -45,7 +45,7 @@ class guesser_test extends \phpbb_test_case
$this->guesser_no_fileinfo = new \phpbb\mimetype\guesser(array($guessers[2]));
$this->guesser = new \phpbb\mimetype\guesser($guessers);
$this->path = dirname(__FILE__);
$this->path = __DIR__;
$this->jpg_file = $this->path . '/fixtures/jpg';
$this->phpbb_root_path = $phpbb_root_path;
}