git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatically login to phorkie
[phorkie.git]
/
www
/
edit.php
diff --git
a/www/edit.php
b/www/edit.php
index 4de3d47cb93b4310d6529b2ba80083a9f2d8aed2..e95ca3f5ed2dbf5441f79300dc5bfacdd8853308 100644
(file)
--- a/
www/edit.php
+++ b/
www/edit.php
@@
-11,13
+11,20
@@
$repo->loadFromRequest();
$repopo = new Repository_Post($repo);
if ($repopo->process($_POST, $_SESSION)) {
$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,
}
render(
'edit',
array(
'repo' => $repo,
+ 'singlefile' => $file,
+ 'dh' => new \Date_HumanDiff(),
'htmlhelper' => new HtmlHelper(),
)
);
'htmlhelper' => new HtmlHelper(),
)
);