aboutsummaryrefslogtreecommitdiff
path: root/www/edit.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-12-04 07:52:03 +0100
committerChristian Weiske <cweiske@cweiske.de>2014-12-04 07:52:03 +0100
commit66170c339bbcd8b87e23c47daa11359a99e0d02d (patch)
tree27477957638b2898b5c2ac28119df6243d15d2b1 /www/edit.php
parent5cec779b275b1bf231accf43581f16d215cb7444 (diff)
downloadphorkie-66170c339bbcd8b87e23c47daa11359a99e0d02d.tar.gz
phorkie-66170c339bbcd8b87e23c47daa11359a99e0d02d.zip
Single file editing
Diffstat (limited to 'www/edit.php')
-rw-r--r--www/edit.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/www/edit.php b/www/edit.php
index d1853d2..e95ca3f 100644
--- a/www/edit.php
+++ b/www/edit.php
@@ -14,10 +14,16 @@ if ($repopo->process($_POST, $_SESSION)) {
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(),
)