NEW Performance enhancement: Replace dirname(__FILE__) with __DIR__

This commit is contained in:
Laurent Destailleur
2019-03-06 14:33:05 +01:00
parent d4409ffb08
commit 0c2a0c643b
7 changed files with 14 additions and 15 deletions

View File

@@ -25,7 +25,7 @@
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
$path=dirname(__FILE__).'/';
$path=__DIR__.'/';
// Test if batch mode
if (substr($sapi_type, 0, 3) == 'cgi') {