fixed description of SMARTY_CORE_DIR

removed useless hack (why should it be in the docs, if it isn't
recommended anyway?)
This commit is contained in:
messju
2005-12-09 18:46:25 +00:00
parent fe19f13ca5
commit b98c1e542c

View File

@@ -23,10 +23,6 @@ define('SMARTY_DIR','/usr/local/lib/php/Smarty/libs/');
// path to Smarty windows style
define('SMARTY_DIR', 'c:/webroot/libs/Smarty/libs/');
// hack (not recommended) that works on both *nix and windows
// Smarty is assumend to be in 'includes' dir under current script
define('SMARTY_DIR',str_replace("\\","/",getcwd()).'/includes/Smarty/libs/');
// include the smarty class Note 'S' is upper case
require_once(SMARTY_DIR . 'Smarty.class.php');
?>
@@ -47,7 +43,7 @@ require_once(SMARTY_DIR.'Smarty.class.php');
<para>
This should be the full system path to the location of the Smarty core
files. If not defined, Smarty will default this constant to the
<emphasis>libs/</emphasis>
<emphasis>internals/</emphasis>
sub-directory below
<link linkend="constant.smarty.dir">SMARTY_DIR</link>.
If defined, the path must end with a slash.