@@ 133-141 (lines=9) @@ | ||
130 | exit(1); |
|
131 | } |
|
132 | ||
133 | if (null !== $instanceId) { |
|
134 | $faqInstance = new Instance($faqConfig); |
|
135 | if (1 !== $instanceId && $faqInstance->removeInstance($instanceId)) { |
|
136 | $payload = array('deleted' => $instanceId); |
|
137 | } else { |
|
138 | $payload = array('error' => $instanceId); |
|
139 | } |
|
140 | $http->sendJsonWithHeaders($payload); |
|
141 | } |
|
142 | break; |
|
143 | ||
144 | case 'edit_instance': |
|
@@ 145-153 (lines=9) @@ | ||
142 | break; |
|
143 | ||
144 | case 'edit_instance': |
|
145 | if (null !== $instanceId) { |
|
146 | $faqInstance = new Instance($faqConfig); |
|
147 | if ($faqInstance->removeInstance($instanceId)) { |
|
148 | $payload = array('deleted' => $instanceId); |
|
149 | } else { |
|
150 | $payload = array('error' => $instanceId); |
|
151 | } |
|
152 | $http->sendJsonWithHeaders($payload); |
|
153 | } |
|
154 | break; |
|
155 | ||
156 | case 'load_stop_words_by_lang': |