| @@ 134-148 (lines=15) @@ | ||
| 131 | } |
|
| 132 | $data = ''; |
|
| 133 | ||
| 134 | if (api_is_western_name_order()) { |
|
| 135 | if(!empty($this->results[0]['first_name'])) { |
|
| 136 | $data .= get_lang('FirstName').';'; |
|
| 137 | } |
|
| 138 | if(!empty($this->results[0]['last_name'])) { |
|
| 139 | $data .= get_lang('LastName').';'; |
|
| 140 | } |
|
| 141 | } else { |
|
| 142 | if(!empty($this->results[0]['last_name'])) { |
|
| 143 | $data .= get_lang('LastName').';'; |
|
| 144 | } |
|
| 145 | if(!empty($this->results[0]['first_name'])) { |
|
| 146 | $data .= get_lang('FirstName').';'; |
|
| 147 | } |
|
| 148 | } |
|
| 149 | $data .= get_lang('Email').';'; |
|
| 150 | ||
| 151 | /*if ($export_user_fields) { |
|
| @@ 309-323 (lines=15) @@ | ||
| 306 | $filename = api_replace_dangerous_char($filename); |
|
| 307 | ||
| 308 | $data = ''; |
|
| 309 | if (api_is_western_name_order()) { |
|
| 310 | if (!empty($this->results[0]['first_name'])) { |
|
| 311 | $data .= get_lang('FirstName').';'; |
|
| 312 | } |
|
| 313 | if (!empty($this->results[0]['last_name'])) { |
|
| 314 | $data .= get_lang('LastName').';'; |
|
| 315 | } |
|
| 316 | } else { |
|
| 317 | if (!empty($this->results[0]['last_name'])) { |
|
| 318 | $data .= get_lang('LastName').';'; |
|
| 319 | } |
|
| 320 | if (!empty($this->results[0]['first_name'])) { |
|
| 321 | $data .= get_lang('FirstName').';'; |
|
| 322 | } |
|
| 323 | } |
|
| 324 | $officialCodeInList = api_get_setting('show_official_code_exercise_result_list'); |
|
| 325 | if ($officialCodeInList === 'true') { |
|
| 326 | $data .= get_lang('OfficialCode').';'; |
|