From: tokul Date: Tue, 26 Apr 2005 14:27:29 +0000 (+0000) Subject: prevent errors when files are opened directly X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=763469ef88b05d2f6c84d24ebdd559ff481f756f;p=squirrelmail.git prevent errors when files are opened directly git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9392 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/class/l10n.class.php b/class/l10n.class.php index 38639991..033bd714 100644 --- a/class/l10n.class.php +++ b/class/l10n.class.php @@ -14,6 +14,9 @@ * @subpackage i18n */ +/** @ignore */ +if (! defined('SM_PATH')) define('SM_PATH','../'); + /** Load all php-gettext classes */ include_once(SM_PATH . 'class/l10n/streams.class.php'); include_once(SM_PATH . 'class/l10n/gettext.class.php'); diff --git a/class/mime.class.php b/class/mime.class.php index 48d2def4..fc05bdb2 100644 --- a/class/mime.class.php +++ b/class/mime.class.php @@ -12,6 +12,9 @@ * @package squirrelmail */ +/** @ignore */ +if (! defined('SM_PATH')) define('SM_PATH','../'); + /** Load in the entire MIME system */ require_once(SM_PATH . 'class/mime/Rfc822Header.class.php'); require_once(SM_PATH . 'class/mime/MessageHeader.class.php');