function postContent() { $this->gatekeeper(); $new = false; if (!empty($this->arguments)) { $object = \IdnoPlugins\Like\Like::getByID($this->arguments[0]); } if (empty($object)) { $object = new \IdnoPlugins\Like\Like(); } if ($object->saveDataFromInput($this)) { $this->forward($object->getURL()); } }
function postContent() { $this->createGatekeeper(); $new = false; if (!empty($this->arguments)) { $object = \IdnoPlugins\Like\Like::getByID($this->arguments[0]); } if (empty($object)) { $object = new \IdnoPlugins\Like\Like(); } if ($object->saveDataFromInput($this)) { $forward = $this->getInput('forward-to', $object->getDisplayURL()); $this->forward($forward); } }
function postContent() { $this->createGatekeeper(); $new = false; if (!empty($this->arguments)) { $object = \IdnoPlugins\Like\Like::getByID($this->arguments[0]); } if (empty($object)) { $object = new \IdnoPlugins\Like\Like(); } if ($object->saveDataFromInput($this)) { $this->forward(\Idno\Core\site()->config()->getDisplayURL() . 'content/all/'); //$this->forward($object->getDisplayURL()); } }