| @@ 195-200 (lines=6) @@ | ||
| 192 | ||
| 193 | $this->lib_admin->log(lang('Installed a module', 'admin') . ' ' . $data['name']); |
|
| 194 | ||
| 195 | if ($this->input->server('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest') { |
|
| 196 | $result = true; |
|
| 197 | echo json_encode(['result' => $result]); |
|
| 198 | } else { |
|
| 199 | return TRUE; |
|
| 200 | } |
|
| 201 | } else { |
|
| 202 | if ($this->input->server('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest') { |
|
| 203 | $result = true; |
|
| @@ 201-208 (lines=8) @@ | ||
| 198 | } else { |
|
| 199 | return TRUE; |
|
| 200 | } |
|
| 201 | } else { |
|
| 202 | if ($this->input->server('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest') { |
|
| 203 | $result = true; |
|
| 204 | echo json_encode(['result' => $result]); |
|
| 205 | } else { |
|
| 206 | return FALSE; |
|
| 207 | } |
|
| 208 | } |
|
| 209 | } |
|
| 210 | ||
| 211 | /** |
|