diff --git a/administrator/components/com_joomlaupdate/extract.php b/administrator/components/com_joomlaupdate/extract.php index 57dd84ef4d8c8..8a7180b33e01e 100644 --- a/administrator/components/com_joomlaupdate/extract.php +++ b/administrator/components/com_joomlaupdate/extract.php @@ -1956,7 +1956,7 @@ function setHugeMemoryLimit() @unlink($basePath . 'update.php'); // Import a custom finalisation file - $filename = \dirname(__FILE__) . '/finalisation.php'; + $filename = __DIR__ . '/finalisation.php'; if (file_exists($filename)) { clearFileInOPCache($filename); diff --git a/administrator/index.php b/administrator/index.php index c47e4bb494d0a..480d1fce34f93 100644 --- a/administrator/index.php +++ b/administrator/index.php @@ -29,4 +29,4 @@ \define('_JEXEC', 1); // Run the application - All executable code should be triggered through this file -require_once \dirname(__FILE__) . '/includes/app.php'; +require_once __DIR__ . '/includes/app.php'; diff --git a/api/index.php b/api/index.php index 3785e00f2cf5c..39b7bd8adceda 100644 --- a/api/index.php +++ b/api/index.php @@ -28,4 +28,4 @@ \define('_JEXEC', 1); // Run the application - All executable code should be triggered through this file -require_once \dirname(__FILE__) . '/includes/app.php'; +require_once __DIR__ . '/includes/app.php'; diff --git a/index.php b/index.php index 85daa024dce05..0ce8bceb9aef4 100644 --- a/index.php +++ b/index.php @@ -29,4 +29,4 @@ define('_JEXEC', 1); // Run the application - All executable code should be triggered through this file -require_once dirname(__FILE__) . '/includes/app.php'; +require_once __DIR__ . '/includes/app.php'; diff --git a/installation/index.php b/installation/index.php index 163297bc31829..099e5daf1d835 100644 --- a/installation/index.php +++ b/installation/index.php @@ -29,4 +29,4 @@ \define('_JEXEC', 1); // Run the application - All executable code should be triggered through this file -require_once \dirname(__FILE__) . '/includes/app.php'; +require_once __DIR__ . '/includes/app.php'; diff --git a/installation/joomla.php b/installation/joomla.php index 137e042651c57..6a3e8db46c2a6 100644 --- a/installation/joomla.php +++ b/installation/joomla.php @@ -36,4 +36,4 @@ \define('_JCLI_INSTALLATION', 1); // Run the application - All executable code should be triggered through this file -require_once \dirname(__FILE__) . '/includes/cli.php'; +require_once __DIR__ . '/includes/cli.php';