X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/0c2d838a9b2f0c81d460b49ccd74775440ced828..ca956a5a5758b8514f15c4828bf26a11a7b66032:/www/new.php diff --git a/www/new.php b/www/new.php index ef9daec..965f534 100644 --- a/www/new.php +++ b/www/new.php @@ -10,10 +10,11 @@ namespace phorkie; * * Creates and redirects to display page */ +$reqWritePermissions = true; require_once 'www-header.php'; $repopo = new Repository_Post(); -if ($repopo->process($_POST)) { +if ($repopo->process($_POST, $_SESSION)) { redirect($repopo->repo->getLink('display')); } @@ -27,7 +28,7 @@ render( 'files' => $phork, 'description' => '', 'htmlhelper' => new HtmlHelper(), - 'recents' => $db->getSearch()->listAll(0, 5, 'crdate', 'desc'), + 'recents' => $db->getSearch()->listAll(0, 5, 'modate', 'desc'), 'dh' => new \Date_HumanDiff(), ) );