- Timestamp:
- 10/18/12 14:44:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/local/classes/class.wf_location.php
r5307 r7440 177 177 * @access public 178 178 */ 179 function getCitiesByKey($key, $state_id = 0, $include_districts = true )179 function getCitiesByKey($key, $state_id = 0, $include_districts = true, $hasAccent = true) 180 180 { 181 181 if (!is_string($key) || !is_numeric($state_id) || !is_bool($include_districts)) … … 191 191 } 192 192 193 $city_name = 'c.city_name AS city_name,'; 194 195 if(!$hasAccent) 196 { 197 $city_name = 'TO_ASCII(c.city_name) AS city_name,'; 198 } 199 193 200 $sql = 194 201 "SELECT 195 202 c.id_city AS id_city, 196 c.city_name AS city_name,203 $city_name 197 204 s.id_state AS id_state, 198 205 s.state_name AS state_name,
Note: See TracChangeset
for help on using the changeset viewer.