1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +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

@@ -128,7 +128,7 @@ class phpbb_test_case_helpers
{
$config = array_merge($config, array(
'dbms' => 'phpbb\db\driver\sqlite3',
'dbhost' => dirname(__FILE__) . '/../phpbb_unit_tests.sqlite3', // filename
'dbhost' => __DIR__ . '/../phpbb_unit_tests.sqlite3', // filename
'dbport' => '',
'dbname' => '',
'dbuser' => '',
@@ -143,7 +143,7 @@ class phpbb_test_case_helpers
}
else
{
$test_config = dirname(__FILE__) . '/../test_config.php';
$test_config = __DIR__ . '/../test_config.php';
}
$config_php_file = new \phpbb\config_php_file('', '');