git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hide type dropdown when a filename with a dot is given
[phorkie.git]
/
www
/
edit.php
diff --git
a/www/edit.php
b/www/edit.php
index d86df41f2b45ccd2577a71f6d42637156a2a7f49..562c97cbd5391f8441e0bf28df2343c8d3068fe5 100644
(file)
--- a/
www/edit.php
+++ b/
www/edit.php
@@
-1,5
+1,5
@@
<?php
<?php
-namespace
P
horkie;
+namespace
p
horkie;
/**
* Edit paste contents
*/
/**
* Edit paste contents
*/
@@
-8,10
+8,16
@@
require_once 'www-header.php';
$repo = new Repository();
$repo->loadFromRequest();
$repo = new Repository();
$repo->loadFromRequest();
+$repopo = new Repository_Post($repo);
+if ($repopo->process($_POST)) {
+ redirect($repo->getLink('display'));
+}
+
render(
'edit',
array(
'repo' => $repo,
render(
'edit',
array(
'repo' => $repo,
+ 'htmlhelper' => new HtmlHelper(),
)
);
?>
)
);
?>