# HG changeset patch # User Dan # Date 1273696565 14400 # Node ID a803741a5fc057fbc0ab8b88add42955be823cfa # Parent 98ccd8815a028075d8488e3d5e3e88e958fad6d2 Headings are now compatible with 1.1.7/1.1.8 parser 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 )