public function getImport() { $replace = \Request::get('replace', false); $group = \Request::get('group', '*'); $counter = $this->manager->importTranslations($group === '*' ? $replace : ($this->manager->inDatabasePublishing() == 1 ? 0 : 1), $group === '*' ? null : [$group]); return \Response::json(array('status' => 'ok', 'counter' => $counter)); }
public function getImport(HttpRequest $request) { $replace = $request->get('replace', false); $group = $request->get('group', '*'); //$counter = $this->manager->importTranslations(($group !== '*' ? !$this->manager->inDatabasePublishing() : $replace), false, $group === '*' ? null : [$group]); $counter = $this->manager->importTranslations($group !== '*' ? !$this->manager->inDatabasePublishing() : $replace, $group === '*' ? null : [$group]); return Response::json(array('status' => 'ok', 'counter' => $counter)); }