Make the edit button edit the current page by default
This commit is contained in:
parent
df9384598a
commit
cbf28ac578
3
core.php
3
core.php
|
@ -375,7 +375,8 @@ function printHeader($html, $printpage) {
|
|||
}
|
||||
|
||||
if (isset($_SESSION['type']) && $_SESSION['type'] == 2) {
|
||||
$html .= "\t\t\t\t<a id='edit' href=\"/edit.php\">Edit</a>\n";
|
||||
$pid = $i + 1;
|
||||
$html .= "\t\t\t\t<a id='edit' href=\"/edit.php?id=$pid\">Edit</a>\n";
|
||||
}
|
||||
|
||||
if (!isset($_SESSION['type'])) {
|
||||
|
|
Loading…
Reference in a new issue