add padding fix to edit page
[phorkie.git] / www / edit.php
index 562c97cbd5391f8441e0bf28df2343c8d3068fe5..4199c3496ed44ee0f9228c0936b02317a813e559 100644 (file)
@@ -3,13 +3,14 @@ namespace phorkie;
 /**
  * Edit paste contents
  */
+$reqWritePermissions = true;
 require_once 'www-header.php';
 
 $repo = new Repository();
 $repo->loadFromRequest();
 
 $repopo = new Repository_Post($repo);
-if ($repopo->process($_POST)) {
+if ($repopo->process($_POST, $_SESSION)) {
     redirect($repo->getLink('display'));
 }
 
@@ -17,6 +18,7 @@ render(
     'edit',
     array(
         'repo' => $repo,
+        'dh'   => new \Date_HumanDiff(),
         'htmlhelper' => new HtmlHelper(),
     )
 );