From 42173386b39bed4b06c5ac6c2fc0da510673b354 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Feb 2021 17:38:46 +0300 Subject: [PATCH] dirname(__FILE__) -> __DIR__ --- api/index.php | 6 +++--- backend.php | 2 +- classes/pluginhost.php | 4 ++-- errors.php | 2 +- include/errorhandler.php | 4 ++-- include/functions.php | 2 +- index.php | 2 +- plugins/note/init.php | 2 +- plugins/nsfw/init.php | 2 +- prefs.php | 2 +- public.php | 2 +- update.php | 4 ++-- update_daemon2.php | 4 ++-- 13 files changed, 19 insertions(+), 19 deletions(-) diff --git a/api/index.php b/api/index.php index 1b713d561..6b0071141 100644 --- a/api/index.php +++ b/api/index.php @@ -3,9 +3,9 @@ require_once "../config.php"; - set_include_path(dirname(__FILE__) . PATH_SEPARATOR . - dirname(dirname(__FILE__)) . PATH_SEPARATOR . - dirname(dirname(__FILE__)) . "/include" . PATH_SEPARATOR . + set_include_path(__DIR__ . PATH_SEPARATOR . + dirname(__DIR__) . PATH_SEPARATOR . + dirname(__DIR__) . "/include" . PATH_SEPARATOR . get_include_path()); chdir(".."); diff --git a/backend.php b/backend.php index e64c6561f..b6b3e0030 100644 --- a/backend.php +++ b/backend.php @@ -1,5 +1,5 @@