From f17451f0267512271c415f478220eddb14c188cd Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 9 Feb 2018 15:44:29 +0100 Subject: [PATCH] One more reversion for setCoversConstant function --- nntmux/utility/Utility.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nntmux/utility/Utility.php b/nntmux/utility/Utility.php index f91872e94..f2164ca3a 100755 --- a/nntmux/utility/Utility.php +++ b/nntmux/utility/Utility.php @@ -373,13 +373,13 @@ class Utility { if (! \defined('NN_COVERS')) { switch (true) { - case substr($path, 0, 1) === '/' || - substr($path, 1, 1) === ':' || - substr($path, 0, 1) === '\\': + case substr($path, 0, 1) == '/' || + substr($path, 1, 1) == ':' || + substr($path, 0, 1) == '\\': \define('NN_COVERS', self::trailingSlash($path)); break; - case strlen($path) > 0 && substr($path, 0, 1) !== '/' && substr($path, 1, 1) !== ':' && - substr($path, 0, 1) !== '\\': + case strlen($path) > 0 && substr($path, 0, 1) != '/' && substr($path, 1, 1) != ':' && + substr($path, 0, 1) != '\\': \define('NN_COVERS', realpath(NN_ROOT.self::trailingSlash($path))); break; case empty($path): // Default to resources location.