From c378e44e5d80611f727da68219eb7393814faef3 Mon Sep 17 00:00:00 2001 From: vargenau Date: Fri, 17 Sep 2010 08:41:10 +0000 Subject: [PATCH] Whitespace only git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@7689 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/CreateToc.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/plugin/CreateToc.php b/lib/plugin/CreateToc.php index 8cf957517..55fc0aadb 100644 --- a/lib/plugin/CreateToc.php +++ b/lib/plugin/CreateToc.php @@ -246,7 +246,6 @@ extends WikiPlugin function extractHeaders (&$content, &$markup, $backlink=0, $counter=0, $levels=false, $firstlevelstyle='number', $basepage='') { - if (!$levels) $levels = array(1,2); $tocCounter = $this->_initTocCounter(); reset($levels); @@ -374,8 +373,7 @@ extends WikiPlugin if (!$pagename) { return $this->error(_("no page specified")); } - if ($jshide and isBrowserIE() and browserDetect("Mac")) { - //trigger_error(_("jshide set to 0 on Mac IE"), E_USER_NOTICE); + if (isBrowserIE() and browserDetect("Mac")) { $jshide = 0; } if (($notoc) or ($liststyle == 'ol')) { @@ -384,8 +382,8 @@ extends WikiPlugin // Check if user is allowed to get the Page. if (!mayAccessPage ('view', $pagename)) { - return $this->error(sprintf(_("Illegal access to page %s: no read access"), - $pagename)); + return $this->error(sprintf(_("Illegal access to page %s: no read access"), + $pagename)); } $page = $dbi->getPage($pagename); -- 2.45.0