[Phpslash-commit] CVS: phpslash-ft/class tz.class,1.4,1.5
Brought to you by:
joestewart,
nhruby
From: Matthew L. <sym...@us...> - 2003-02-20 21:15:39
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory sc8-pr-cvs1:/tmp/cvs-serv31612/class Modified Files: tz.class Log Message: The config directives zone_file and country_file are recognized and used as member variables. Index: tz.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/tz.class,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tz.class 22 Jan 2003 19:12:33 -0000 1.4 --- tz.class 20 Feb 2003 21:15:34 -0000 1.5 *************** *** 65,68 **** --- 65,74 ---- } $this->set_member($ary); + if (!$this->zone_file) { + $this->zone_file = $this->tzdir . '/zone.tab'; + } + if (!$this->country_file) { + $this->country_file = $this->tzdir . '/iso3166.tab'; + } $this->valid = $this->validate(); *************** *** 235,240 **** $tpl->set_block('form','each_region_option','EACH_REGION_OPTION'); $tpl->debug=false; ! $tz_file_lines = file($this->tzdir . '/zone.tab'); ! $country_file_lines = file($this->tzdir . '/iso3166.tab'); $continents = array('Africa'=>array(), --- 241,246 ---- $tpl->set_block('form','each_region_option','EACH_REGION_OPTION'); $tpl->debug=false; ! $tz_file_lines = file($this->zone_file); ! $country_file_lines = file($this->country_file); $continents = array('Africa'=>array(), |