mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 16:27:38 +02:00
[ticket/15392] Changed dirname(__FILE__) to __DIR__
Changed dirname(__FILE__) to __DIR__ everywhere PHPBB3-15392
This commit is contained in:
@@ -33,7 +33,7 @@ class phpbb_class_loader_test extends \phpbb_test_case
|
||||
|
||||
public function test_resolve_path()
|
||||
{
|
||||
$prefix = dirname(__FILE__) . '/';
|
||||
$prefix = __DIR__ . '/';
|
||||
$class_loader = new \phpbb\class_loader('phpbb\\', $prefix . 'phpbb/');
|
||||
|
||||
$prefix .= 'phpbb/';
|
||||
@@ -68,7 +68,7 @@ class phpbb_class_loader_test extends \phpbb_test_case
|
||||
);
|
||||
$cache = new phpbb_mock_cache($cache_map);
|
||||
|
||||
$prefix = dirname(__FILE__) . '/';
|
||||
$prefix = __DIR__ . '/';
|
||||
$class_loader = new \phpbb\class_loader('phpbb\\', $prefix . 'phpbb/', 'php', $cache);
|
||||
$class_loader_ext = new \phpbb\class_loader('\\', $prefix . 'phpbb/', 'php', $cache);
|
||||
|
||||
|
Reference in New Issue
Block a user