summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
authorHakan Sandell <sandell.hakan@gmail.com>2010-10-23 16:40:40 +0200
committerHakan Sandell <sandell.hakan@gmail.com>2010-10-23 16:40:40 +0200
commitbcb79ff3b3b63c74a93cdf4762fa0cd1bb28d17a (patch)
treeadcea7789395cf752416306f0ed6952c7f702ef8 /inc/parser/xhtml.php
parente3626db54846ba20cefbc1a9e2d8e29c40137067 (diff)
parent06ce34e4a80b6875db82190eb7abfb97bfd801b8 (diff)
downloadrpg-bcb79ff3b3b63c74a93cdf4762fa0cd1bb28d17a.tar.gz
rpg-bcb79ff3b3b63c74a93cdf4762fa0cd1bb28d17a.tar.bz2
Merge branch 'master' of git://github.com/splitbrain/dokuwiki
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 5a3d945d1..37900b2c3 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -902,16 +902,23 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
}
// $numrows not yet implemented
- function table_open($maxcols = NULL, $numrows = NULL, $pos){
+ function table_open($maxcols = null, $numrows = null, $pos = null){
global $lang;
// initialize the row counter used for classes
$this->_counter['row_counter'] = 0;
- $this->doc .= '<div class="table ' . $this->startSectionEdit($pos, 'table') . '"><table class="inline">'.DOKU_LF;
+ $class = 'table';
+ if ($pos !== null) {
+ $class .= ' ' . $this->startSectionEdit($pos, 'table');
+ }
+ $this->doc .= '<div class="' . $class . '"><table class="inline">' .
+ DOKU_LF;
}
- function table_close($pos){
+ function table_close($pos = null){
$this->doc .= '</table></div>'.DOKU_LF;
- $this->finishSectionEdit($pos);
+ if ($pos !== null) {
+ $this->finishSectionEdit($pos);
+ }
}
function tablerow_open(){