getPage($url); if (!$Page) { return $Response; } $History = History::get($Page->path); return $Response->setData($History->log()); } /** * Restore a page to specific revision. * * @return Response */ public static function restore(): Response { $Response = new Response(); $Messenger = new Messenger(); $Automad = Automad::fromCache(); $url = Request::post('url'); $hash = Request::post('revision'); $Page = $Automad->getPage($url); Debug::log($hash, $url); if (!$Page || !$hash) { return $Response; } $History = History::get($Page->path); $History->restore($hash, $Page->get(Fields::TITLE), $Messenger); return $Response->setError($Messenger->getError())->setReload(true); } } __halt_compiler();----SIGNATURE:----xMskc1CA5LdPmiXH30delrok3JxVSP0wWtDnicQ6GIBtoeWNdmPsFqDhwe4HM8Da8fOdSQ6gJlaT00O3uDuB8rypVBMjoo8sgAZClMd0v+ZXuYKFhzpHJmUY5l/jCXxmclnhPc+leXWr/IAxoec7b1wqJWPNr+UWZMa5CIO9Cw8pVISpnqIUs7lJAwsJf1+nvvPRx2jr6Eba5KxKKXZk73p+Z7PEkcrAzgm41rW2DeKQj3koae+3X4b4Y+BulAJnvid+qpSGMUtHF4t73DInXNI9YQnKizMbFq3dh34F4U/Bqae7YAH6LqtNqWOfF6a2Kiw5RznugWt5xumAWhGPb9xRkhCzAq9RU4+19OZmmGdoZs3Kr5/WYgI34zkJ8MLwBguVdPUtalMJAZM5ox4/u1GGLG91pwhht0FowSxEuzVc2wmf0iGFdJygrrIzC/5SSerxEpD+VnKF5bBc/DGxSZTv/boFUfT49ttClNaoap6yhS/6/fZZbs/FbkVp70+pmH3WlLdh3HlVDa/JsMa40A8dK1zHVFHgkJGeY98BmzCo/fxcwcNVLhscCzwX4COzM4f699r374WBVkh9cc9JAcOpKFJ28DPZlRuYhM02cnRUGyF+KksJOJ4iVagurDABNy77Wik8r4XIiP6QRmIu5DmORFkc0pwgjudB7h3fWFI=----ATTACHMENT:----NjgzMjMzOTc1NDYzODY3IDM3OTMzMTY4NzU4MjAzMyA5ODE2OTQ3OTQ3OTEzODM2