X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/97c4ac59eed8b66b2e7f85d8ac325b063fb8a0ce..7bfe10119a31215f131c64fa57c3ffc10a58c8eb:/www/edit.php diff --git a/www/edit.php b/www/edit.php index db4428b..4199c34 100644 --- a/www/edit.php +++ b/www/edit.php @@ -3,10 +3,8 @@ namespace phorkie; /** * Edit paste contents */ +$reqWritePermissions = true; require_once 'www-header.php'; -if ($GLOBALS['phorkie']['auth']['secure'] > 0) { - require_once 'secure.php'; -} $repo = new Repository(); $repo->loadFromRequest(); @@ -20,6 +18,7 @@ render( 'edit', array( 'repo' => $repo, + 'dh' => new \Date_HumanDiff(), 'htmlhelper' => new HtmlHelper(), ) );