Skip to content
Snippets Groups Projects
Commit d9e36cbe authored by Adrian Lang's avatar Adrian Lang
Browse files

Show last edit section button again

parent 7ec82fe2
No related branches found
No related tags found
No related merge requests found
......@@ -58,19 +58,20 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
/**
* Finish an edit section range
*
* @param $pos int The byte position for the edit end
* @param $end int The byte position for the edit end; null for the rest of
the page
* @author Adrian Lang <lang@cosmocode.de>
*/
protected function finishSectionEdit($end) {
protected function finishSectionEdit($end = null) {
list($id, $start, $type, $title) = array_pop($this->sectionedits);
if ($end <= $start) {
if (!is_null($end) && $end <= $start) {
return;
}
$this->doc .= "<!-- EDIT$id " . strtoupper($type) . ' ';
if (!is_null($title)) {
$this->doc .= '"' . str_replace('"', '', $title) . '" ';
}
$this->doc .= "[$start-" . ($end === 0 ? '' : $end) . '] -->';
$this->doc .= "[$start-" . (is_null($end) ? '' : $end) . '] -->';
}
function getFormat(){
......@@ -92,7 +93,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
// marker.
array_pop($this->sectionedits);
} else {
$this->finishSectionEdit(0);
$this->finishSectionEdit();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment