X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/6eef15cdc3bef5971d8ffe95bcbcaff368c87e69..ba406cb340bcbfc88f465a3cefd416cdda95fd43:/www/edit.php diff --git a/www/edit.php b/www/edit.php index 4de3d47..e95ca3f 100644 --- a/www/edit.php +++ b/www/edit.php @@ -11,13 +11,20 @@ $repo->loadFromRequest(); $repopo = new Repository_Post($repo); if ($repopo->process($_POST, $_SESSION)) { - redirect($repo->getLink('display')); + redirect($repo->getLink('display', null, true)); +} + +$file = null; +if (isset($_GET['file'])) { + $file = $repo->getFileByName($_GET['file']); } render( 'edit', array( 'repo' => $repo, + 'singlefile' => $file, + 'dh' => new \Date_HumanDiff(), 'htmlhelper' => new HtmlHelper(), ) );