diff -r 98ccd8815a02 -r a803741a5fc0 Wikulator.php --- a/Wikulator.php Tue Jul 28 16:07:51 2009 -0400 +++ b/Wikulator.php Wed May 12 16:36:05 2010 -0400 @@ -1,7 +1,7 @@ 0 ) $toc .= ''; - $toc .= '
' . implode('.', $treenum) . ' ' . htmlspecialchars($matches[2][$i]) . ''; + if ( version_compare(enano_version(), '1.1.7', '>=') ) + { + $tocid = sanitize_page_id(trim($matches[2][$i])); + $tocid = str_replace(array('[', ']'), '', $tocid); + } + else + { + $tocid = "$i"; + } + $toc .= '
' . implode('.', $treenum) . ' ' . htmlspecialchars($matches[2][$i]) . ''; $prev = $head; } while ( $levels > 0 )