git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add padding fix to edit page
[phorkie.git]
/
www
/
edit.php
diff --git
a/www/edit.php
b/www/edit.php
index e59bcd1f55518e4ece3b5b0012fb345c557e40d5..4199c3496ed44ee0f9228c0936b02317a813e559 100644
(file)
--- a/
www/edit.php
+++ b/
www/edit.php
@@
-1,15
+1,16
@@
<?php
<?php
-namespace
P
horkie;
+namespace
p
horkie;
/**
* Edit paste contents
*/
/**
* Edit paste contents
*/
+$reqWritePermissions = true;
require_once 'www-header.php';
$repo = new Repository();
$repo->loadFromRequest();
$repopo = new Repository_Post($repo);
require_once 'www-header.php';
$repo = new Repository();
$repo->loadFromRequest();
$repopo = new Repository_Post($repo);
-if ($repopo->process($_POST)) {
+if ($repopo->process($_POST
, $_SESSION
)) {
redirect($repo->getLink('display'));
}
redirect($repo->getLink('display'));
}
@@
-17,6
+18,7
@@
render(
'edit',
array(
'repo' => $repo,
'edit',
array(
'repo' => $repo,
+ 'dh' => new \Date_HumanDiff(),
'htmlhelper' => new HtmlHelper(),
)
);
'htmlhelper' => new HtmlHelper(),
)
);