From d909ef268ee7df8bd8c41ed40000c9bb6215a7f2 Mon Sep 17 00:00:00 2001 From: vargenau Date: Tue, 16 Apr 2013 15:53:47 +0000 Subject: [PATCH] Remove unused param in getCounter git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@8760 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/CreateToc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/plugin/CreateToc.php b/lib/plugin/CreateToc.php index 25f5da9c7..5bbf0a5d6 100644 --- a/lib/plugin/CreateToc.php +++ b/lib/plugin/CreateToc.php @@ -114,7 +114,7 @@ class WikiPlugin_CreateToc } // Get string corresponding to the current title - private function getCounter(&$counter, $level, $firstlevelstyle) + private function getCounter(&$counter, $firstlevelstyle) { if ($firstlevelstyle == 'roman') { $str = $this->roman_counter($counter[1]); @@ -311,7 +311,7 @@ class WikiPlugin_CreateToc $manchor = MangleXmlIdentifier($anchor); $texts = $s; if ($counter) { - $texts = $this->getCounter($tocCounter, $level, $firstlevelstyle) . ' ' . $s; + $texts = $this->getCounter($tocCounter, $firstlevelstyle) . ' ' . $s; } $headers[] = array('text' => $texts, 'anchor' => $anchor, @@ -330,7 +330,7 @@ class WikiPlugin_CreateToc $x = $markup->_content[$j]; $qheading = $this->quote($s); if ($counter) - $counterString = $this->getCounter($tocCounter, $level, $firstlevelstyle); + $counterString = $this->getCounter($tocCounter, $firstlevelstyle); if (($hstart === 0) && is_string($markup->_content[$j])) { if ($backlink) { if ($counter) -- 2.42.0