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

Really allow plugins to use section editing

parent 8e4da260
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ function html_login(){
function html_secedit($text,$show=true){
global $INFO;
$regexp = '#<!-- EDIT(\d+) ([A-Z]+) (?:"([^"]*)" )?\[(\d+-\d*)\] -->#';
$regexp = '#<!-- EDIT(\d+) ([A-Z_]+) (?:"([^"]*)" )?\[(\d+-\d*)\] -->#';
if(!$INFO['writable'] || !$show || $INFO['rev']){
return preg_replace($regexp,'',$text);
......
......@@ -49,7 +49,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
* @return string A marker class for the starting HTML element
* @author Adrian Lang <lang@cosmocode.de>
*/
protected function startSectionEdit($start, $type, $title = null) {
public function startSectionEdit($start, $type, $title = null) {
static $lastsecid = 0;
$this->sectionedits[] = array(++$lastsecid, $start, $type, $title);
return 'sectionedit' . $lastsecid;
......@@ -62,7 +62,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
the page
* @author Adrian Lang <lang@cosmocode.de>
*/
protected function finishSectionEdit($end = null) {
public function finishSectionEdit($end = null) {
list($id, $start, $type, $title) = array_pop($this->sectionedits);
if (!is_null($end) && $end <= $start) {
return;
......
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