Plugin Directory

Changeset 520737


Ignore:
Timestamp:
03/19/2012 05:56:31 AM (14 years ago)
Author:
rxn
Message:

fixed dropdown

Location:
sunrise-sunset/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sunrise-sunset/trunk/cities.txt

    r520711 r520737  
    88Miami:America/New_York:25.82:-80.28
    99Nashville,TN:America/Chicago:36.12:-86.68
    10 Orland:America/New_York:28.55:-81.33
     10Orlando,FL:America/New_York:28.55:-81.33
    1111Richmond,VA:America/New_York:37.50:-77.33
    1212Roanoke Muni,VA:America/New_York:37.32:-79.97
  • sunrise-sunset/trunk/sunrisesunset.php

    r520735 r520737  
    9797
    9898        foreach ($this->_cities as $city) {
    99             if ($instance['timezone'] == $city->getTimezone()) {
    100                 $select_box .= sprintf('<option value="%s" selected="yes">%s</option>', $city->getTimezone(), $city->getName());
     99            if ($instance['timezone'] == $city->getName()) {
     100                $select_box .= sprintf('<option value="%s" selected="yes">%s</option>', $city->getName(), $city->getName());
    101101            } else {
    102                 $select_box .= sprintf('<option value="%s">%s</option>', $city->getTimezone(), $city->getName());
     102                $select_box .= sprintf('<option value="%s">%s</option>', $city->getName(), $city->getName());
    103103            }
    104104        }
Note: See TracChangeset for help on using the changeset viewer.