X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/9cbf7fdfaa302181f988bce8d594ed7fee67c837..ba406cb340bcbfc88f465a3cefd416cdda95fd43:/www/edit.php diff --git a/www/edit.php b/www/edit.php index 4199c34..e95ca3f 100644 --- a/www/edit.php +++ b/www/edit.php @@ -11,13 +11,19 @@ $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(), )