Fixed argument count for table_open
This commit is contained in:
7
plugin.info.txt
Normal file
7
plugin.info.txt
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
base filelist
|
||||||
|
author Gina Häußge
|
||||||
|
email gina@foosel.net
|
||||||
|
date 2009-11-16
|
||||||
|
name Filelist Plugin
|
||||||
|
desc Lists files matching a given glob pattern.
|
||||||
|
url http://foosel.org/snippets/dokuwiki/filelist
|
||||||
12
syntax.php
12
syntax.php
@@ -102,7 +102,7 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin {
|
|||||||
$params['recursive'] = 0;
|
$params['recursive'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return array($type, $pattern, $params, $title);
|
return array($type, $pattern, $params, $title, $pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -114,7 +114,7 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin {
|
|||||||
// disable caching
|
// disable caching
|
||||||
$renderer->info['cache'] = false;
|
$renderer->info['cache'] = false;
|
||||||
|
|
||||||
list($type, $pattern, $params, $title) = $data;
|
list($type, $pattern, $params, $title, $pos) = $data;
|
||||||
if ($mode == 'xhtml') {
|
if ($mode == 'xhtml') {
|
||||||
|
|
||||||
$result = $this->_create_filelist($pattern, $params);
|
$result = $this->_create_filelist($pattern, $params);
|
||||||
@@ -160,7 +160,7 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin {
|
|||||||
|
|
||||||
case 'table':
|
case 'table':
|
||||||
$renderer->doc .= '<div class="filelist-plugin">'.DOKU_LF;
|
$renderer->doc .= '<div class="filelist-plugin">'.DOKU_LF;
|
||||||
$this->_render_table($result, $params, $renderer);
|
$this->_render_table($result, $params, $pos, $renderer);
|
||||||
$renderer->doc .= '</div>'.DOKU_LF;
|
$renderer->doc .= '</div>'.DOKU_LF;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -278,10 +278,10 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin {
|
|||||||
* @param $renderer the renderer to use
|
* @param $renderer the renderer to use
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function _render_table($result, $params, &$renderer) {
|
function _render_table($result, $params, $pos, &$renderer) {
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$renderer->table_open();
|
$renderer->table_open(NULL, NULL, $pos);
|
||||||
|
|
||||||
if ($params['tableheader']) {
|
if ($params['tableheader']) {
|
||||||
$renderer->tableheader_open();
|
$renderer->tableheader_open();
|
||||||
@@ -322,7 +322,7 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin {
|
|||||||
|
|
||||||
$renderer->tablerow_close();
|
$renderer->tablerow_close();
|
||||||
}
|
}
|
||||||
$renderer->table_close();
|
$renderer->table_close($pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user