From c79466e48f3cc9315d8116ee79032a5a8264aa86 Mon Sep 17 00:00:00 2001 From: Yuriy Pikhtarev Date: Sun, 25 Jun 2017 15:36:53 +0300 Subject: [PATCH] __DIR__ constant can be used. --- styles/templates/default/tpl_config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styles/templates/default/tpl_config.php b/styles/templates/default/tpl_config.php index 368620abe..4425c784d 100644 --- a/styles/templates/default/tpl_config.php +++ b/styles/templates/default/tpl_config.php @@ -26,7 +26,7 @@ global $bb_cfg, $page_cfg, $template, $images, $lang; $width = $height = array(); -$template_name = basename(dirname(__FILE__)); +$template_name = basename(__DIR__); $_img = BB_ROOT . 'styles/images/'; $_main = BB_ROOT . 'styles/' . basename(TEMPLATES_DIR) . '/' . $template_name . '/images/';