[phpMP-CVS] CVS: phpMP/includes language.php,NONE,1.1 template.php,1.20,1.21
Status: Pre-Alpha
Brought to you by:
heimidal
From: Brian R. <hei...@us...> - 2002-11-30 10:58:28
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv24219/includes Modified Files: template.php Added Files: language.php Log Message: Cleaned up a few files. Fixed some defines. Added the language.php file which determines and sets language constants. --- NEW FILE: language.php --- <? class Language { function Language() { if( defined("USR_LANG") ) { define( "LANGUAGE", USR_LANG ); } else { define( "LANGUAGE", DEFAULT_LANG ); } } } ?> Index: template.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/template.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -r1.20 -r1.21 *** template.php 30 Nov 2002 05:56:09 -0000 1.20 --- template.php 30 Nov 2002 10:58:23 -0000 1.21 *************** *** 15,21 **** // Set up the directories for Smarty. ! $this->template_dir = './templates/' . TPL_DIR; ! $this->compile_dir = './templates/' . TPL_DIR . '/compile'; ! $this->config_dir = './templates/' . TPL_DIR . '/configs' $this->cache_dir = ''; --- 15,21 ---- // Set up the directories for Smarty. ! $this->template_dir = './templates/' . TEMPLATE; ! $this->compile_dir = './templates/' . TEMPLATE . '/compile'; ! $this->config_dir = './templates/' . TEMPLATE . '/configs' $this->cache_dir = ''; *************** *** 42,46 **** "REL_PATH" => REL_PATH, "TODAY" => TODAY, ! "TPL_DIR" => TPL_DIR, "SITE_NAME" => SITE_NAME --- 42,46 ---- "REL_PATH" => REL_PATH, "TODAY" => TODAY, ! "TEMPLATE" => TEMPLATE, "SITE_NAME" => SITE_NAME |