Changeset 520737
- Timestamp:
- 03/19/2012 05:56:31 AM (14 years ago)
- Location:
- sunrise-sunset/trunk
- Files:
-
- 2 edited
-
cities.txt (modified) (1 diff)
-
sunrisesunset.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sunrise-sunset/trunk/cities.txt
r520711 r520737 8 8 Miami:America/New_York:25.82:-80.28 9 9 Nashville,TN:America/Chicago:36.12:-86.68 10 Orland :America/New_York:28.55:-81.3310 Orlando,FL:America/New_York:28.55:-81.33 11 11 Richmond,VA:America/New_York:37.50:-77.33 12 12 Roanoke Muni,VA:America/New_York:37.32:-79.97 -
sunrise-sunset/trunk/sunrisesunset.php
r520735 r520737 97 97 98 98 foreach ($this->_cities as $city) { 99 if ($instance['timezone'] == $city->get Timezone()) {100 $select_box .= sprintf('<option value="%s" selected="yes">%s</option>', $city->get Timezone(), $city->getName());99 if ($instance['timezone'] == $city->getName()) { 100 $select_box .= sprintf('<option value="%s" selected="yes">%s</option>', $city->getName(), $city->getName()); 101 101 } else { 102 $select_box .= sprintf('<option value="%s">%s</option>', $city->get Timezone(), $city->getName());102 $select_box .= sprintf('<option value="%s">%s</option>', $city->getName(), $city->getName()); 103 103 } 104 104 }
Note: See TracChangeset
for help on using the changeset viewer.