| @@ 176-181 (lines=6) @@ | ||
| 173 | ||
| 174 | $this->lib_admin->log(lang('Installed a module', 'admin') . ' ' . $data['name']); |
|
| 175 | ||
| 176 | if ($this->input->server('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest') { |
|
| 177 | $result = true; |
|
| 178 | echo json_encode(['result' => $result]); |
|
| 179 | } else { |
|
| 180 | return TRUE; |
|
| 181 | } |
|
| 182 | } else { |
|
| 183 | if ($this->input->server('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest') { |
|
| 184 | $result = true; |
|
| @@ 182-189 (lines=8) @@ | ||
| 179 | } else { |
|
| 180 | return TRUE; |
|
| 181 | } |
|
| 182 | } else { |
|
| 183 | if ($this->input->server('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest') { |
|
| 184 | $result = true; |
|
| 185 | echo json_encode(['result' => $result]); |
|
| 186 | } else { |
|
| 187 | return FALSE; |
|
| 188 | } |
|
| 189 | } |
|
| 190 | } |
|
| 191 | ||
| 192 | /** |
|