Skip to content

Commit

Permalink
DW API Anpassung
Browse files Browse the repository at this point in the history
  • Loading branch information
gamma committed Feb 11, 2019
1 parent 273152e commit ef3f401
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions renderer/pdf.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function header($text, $level, $pos) {
$class = array(); $class = array();
if ($INFO['perm'] > AUTH_READ && if ($INFO['perm'] > AUTH_READ &&
$level <= $conf['maxseclevel']) { $level <= $conf['maxseclevel']) {
$class[] = $this->startSectionEdit($pos, 'section', $text); $class[] = $this->startSectionEdit($pos, array( 'target' => 'section', 'name' => $text ) );
} }


if ( !empty($headingNumber) ) { if ( !empty($headingNumber) ) {
Expand Down Expand Up @@ -169,7 +169,8 @@ public function header($text, $level, $pos) {


// write the header // write the header
$name = rand() . $level; $name = rand() . $level;
$this->doc .= DOKU_LF.'<a name="'. $this->startSectionEdit($pos, 'section_empty', $name) .'" class="' . $this->startSectionEdit($pos, 'section_empty', $name) . '" ></a>'.DOKU_LF; $sectionEdit = $this->startSectionEdit($pos, array( 'target' => 'section_empty', 'name' => $name));
$this->doc .= DOKU_LF.'<a name="'. $sectionEdit .'" class="' . $sectionEdit . '" ></a>'.DOKU_LF;
} }


$this->hasSeenHeader = true; $this->hasSeenHeader = true;
Expand Down Expand Up @@ -199,7 +200,7 @@ public function finishSectionEdit($end = null, $hid = null) {
/** /**
* @param string $type * @param string $type
*/ */
public function startSectionEdit($start, $type, $title = null, $hid = null) { public function startSectionEdit($start, $data) {
return ''; return '';
} }


Expand Down

0 comments on commit ef3f401

Please sign in to comment.