/** * Frontend update meta form responder. */ public function updateMeta() { $language = OW::getLanguage(); if (!OW::getRequest()->isAjax() || !$this->metaService->isAdmin() || !isset($_POST['uri'])) { throw new Redirect404Exception(); } if (OW::getRequest()->isPost()) { try { $this->processMetaInfo(); } catch (Exception $e) { exit(json_encode(array('status' => false, 'msg' => $e->getMessage()))); } } exit(json_encode(array('status' => true, 'msg' => $language->text('oaseo', 'frontend_submit_success_message')))); }