From 81bb2aec776a48c42f2f30be820472c9edd7300b Mon Sep 17 00:00:00 2001 From: mohrt Date: Mon, 5 May 2003 14:41:22 +0000 Subject: [PATCH] keep DIR_SEP for 3rd party compatability --- NEWS | 2 +- libs/Smarty.class.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index bde58645..a054a15b 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ - - remove DIR_SEP, use DIRECTORY_SEPARATOR exclusively (Monte) + - use DIRECTORY_SEPARATOR exclusively, keep DIR_SEP for BC (Monte) - changed "link" to "href" in html_image. "link" is still working but deprecated (messju) - html_image always renders an alt-tag now (default alt="") (messju) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index fd230cbb..42b2af02 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -50,6 +50,10 @@ * application has not already defined it. */ +if(!defined('DIR_SEP')) { + define('DIR_SEP', DIRECTORY_SEPARATOR); +} + /** * Sets SMARTY_DIR only if user application has not already defined it */