Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv26055 Modified Files: phpweather.php Log Message: phpweather.php is now used to define the constant PHPWEATHER_BASE_DIR. So there's no need to set this constant manually. Index: phpweather.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/phpweather.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- phpweather.php 2001/04/26 13:11:00 1.6 +++ phpweather.php 2001/06/27 11:23:39 1.7 @@ -1,6 +1,8 @@ <?php +/* The location of this file defines the base directory */ +define('PHPWEATHER_BASE_DIR', dirname(__FILE__)); + require_once(PHPWEATHER_BASE_DIR . '/metar_parser.php'); -require_once(PHPWEATHER_BASE_DIR . '/locale_en.php'); /** * A container-class for the localized object. @@ -31,6 +33,7 @@ /* We also set the language. */ $this->set_language($this->properties['language']); + } /** @@ -44,6 +47,7 @@ function set_language($new_language) { switch ($new_language) { case 'en': + require_once(PHPWEATHER_BASE_DIR . '/locales/locale_en.php'); $this->output = new locale_en($this->properties); break; case 'da': _______________________________________________ PHPWeather-checkins mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/phpweather-checkins