From f0be0ebf62e76bf954f21e8659a8c025ca4febc2 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Thu, 25 Jan 2018 21:13:36 +0000 Subject: [PATCH] remove more incpath usages --- common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.php b/common.php index 54d34751..28adf0a8 100644 --- a/common.php +++ b/common.php @@ -95,10 +95,10 @@ Config::write('__LANG', $PALANG); unset($incpath); if (!defined('POSTFIXADMIN_CLI')) { - if(!is_file("$incpath/smarty.inc.php")) { + if(!is_file(dirname(__FILE__) . "/smarty.inc.php")) { die("smarty.inc.php is missing! Something is wrong..."); } - require_once ("$incpath/smarty.inc.php"); + require_once (dirname(__FILE__) . "/smarty.inc.php"); } /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */