diff --git a/code/CountryDropdownField.php b/code/CountryDropdownField.php index 6322c36..e9c15aa 100644 --- a/code/CountryDropdownField.php +++ b/code/CountryDropdownField.php @@ -23,13 +23,13 @@ function defaultToVisitorCountry($val) { $this->defaultToVisitorCountry = $val; } - function Field() { + function Field($properties = array()) { $source = $this->getSource(); if($this->defaultToVisitorCountry && !$this->value || !isset($source[$this->value])) { $this->value = ($vc = Geoip::visitor_country()) ? $vc : Geoip::get_default_country_code(); } - return parent::Field(); + return parent::Field($properties); } -} \ No newline at end of file +}