__DIR__ constant can be used.

This commit is contained in:
Yuriy Pikhtarev 2017-06-25 15:36:53 +03:00
commit c79466e48f
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6

View file

@ -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/';