summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-05-09 22:43:43 +0200
committerandi <andi@splitbrain.org>2005-05-09 22:43:43 +0200
commit947fa1988384edf953a01a838184426cfaec011a (patch)
tree652e2ccf6058387151c9a7693561955900ee7b82
parentbdc127a4dd6155a0da5f6a39fadebbfc5ee0ff1e (diff)
downloadrpg-947fa1988384edf953a01a838184426cfaec011a.tar.gz
rpg-947fa1988384edf953a01a838184426cfaec011a.tar.bz2
don't use static for footnote ids (bad in feed environment)
darcs-hash:20050509204343-9977f-264ebc54c3dee9e8e9ee4368d9a06af1fb486168.gz
-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);
}