X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/3f0ffc6181c329dd2c1ee05d220b4b82ea907e36..a1b772ed96d84480ece5c35eb4c95b692fb63ecc:/www/edit.php diff --git a/www/edit.php b/www/edit.php index b925f0b..d1853d2 100644 --- a/www/edit.php +++ b/www/edit.php @@ -3,20 +3,22 @@ namespace phorkie; /** * Edit paste contents */ -$pageRequiresLogin = '1'; +$reqWritePermissions = true; require_once 'www-header.php'; + $repo = new Repository(); $repo->loadFromRequest(); $repopo = new Repository_Post($repo); if ($repopo->process($_POST, $_SESSION)) { - redirect($repo->getLink('display')); + redirect($repo->getLink('display', null, true)); } render( 'edit', array( 'repo' => $repo, + 'dh' => new \Date_HumanDiff(), 'htmlhelper' => new HtmlHelper(), ) );