X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/0c2d838a9b2f0c81d460b49ccd74775440ced828..d06f9e8ea6cefcfae1ad28bb203a7e4e562820a8:/www/new.php diff --git a/www/new.php b/www/new.php index ef9daec..6ec746b 100644 --- a/www/new.php +++ b/www/new.php @@ -10,11 +10,12 @@ namespace phorkie; * * Creates and redirects to display page */ +$reqWritePermissions = true; require_once 'www-header.php'; $repopo = new Repository_Post(); -if ($repopo->process($_POST)) { - redirect($repopo->repo->getLink('display')); +if ($repopo->process($_POST, $_SESSION)) { + redirect($repopo->repo->getLink('display', null, true)); } $phork = array( @@ -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(), ) );