summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index e61094f86..e585f346e 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -207,7 +207,8 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
* @author Andreas Gohr <andi@splitbrain.org>
*/
function footnote_open() {
- $id = $this->_newFootnoteId();
+ #$id = $this->_newFootnoteId();
+ $id = count($this->footnotes)+1;
$this->doc .= '<a href="#fn'.$id.'" name="fnt'.$id.'" class="fn_top">'.$id.')</a>';
// move current content to store and record footnote
@@ -922,11 +923,6 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
return $ret;
}
- function _newFootnoteId() {
- static $id = 1;
- return $id++;
- }
-
function _xmlEntities($string) {
return htmlspecialchars($string);
}