From: <var...@us...> - 2014-07-02 14:25:06
|
Revision: 8950 http://sourceforge.net/p/phpwiki/code/8950 Author: vargenau Date: 2014-07-02 14:24:57 +0000 (Wed, 02 Jul 2014) Log Message: ----------- Remove commented trigger_error Modified Paths: -------------- trunk/lib/plugin/AuthorHistory.php trunk/lib/plugin/CreateToc.php trunk/lib/plugin/PageDump.php trunk/lib/plugin/PhpHighlight.php trunk/lib/plugin/SiteMap.php Modified: trunk/lib/plugin/AuthorHistory.php =================================================================== --- trunk/lib/plugin/AuthorHistory.php 2014-07-02 09:51:35 UTC (rev 8949) +++ trunk/lib/plugin/AuthorHistory.php 2014-07-02 14:24:57 UTC (rev 8950) @@ -85,14 +85,11 @@ { $this->_args = $this->getArgs($argstr, $request); extract($this->_args); - //trigger_error("1 p= $page a= $author"); if ($page && $page == 'username') //FIXME: use [username]!!!!! $page = $author; - //trigger_error("2 p= $page a= $author"); if (!$page || !$author) //user not signed in or no author specified return ''; //$pagelist = new PageList($info, $exclude); - /////////////////////////// $nbsp = HTML::raw(' '); Modified: trunk/lib/plugin/CreateToc.php =================================================================== --- trunk/lib/plugin/CreateToc.php 2014-07-02 09:51:35 UTC (rev 8949) +++ trunk/lib/plugin/CreateToc.php 2014-07-02 14:24:57 UTC (rev 8950) @@ -219,9 +219,6 @@ } } } - // Do not trigger error, it happens e.g. for "<<CreateToc pagename=AnotherPage>>" - // trigger_error("Heading <$h> $heading </$h> not found\n", E_USER_NOTICE); - return 0; } Modified: trunk/lib/plugin/PageDump.php =================================================================== --- trunk/lib/plugin/PageDump.php 2014-07-02 09:51:35 UTC (rev 8949) +++ trunk/lib/plugin/PageDump.php 2014-07-02 14:24:57 UTC (rev 8950) @@ -290,7 +290,6 @@ // remove deleted values from array for ($i = 0; $i < count($array); $i++) { if (trim($array[$i]) != "zzzjunk") { //nasty, fixme - //trigger_error("'$array[$i]'");//debugging $return[] = $array[$i]; } } Modified: trunk/lib/plugin/PhpHighlight.php =================================================================== --- trunk/lib/plugin/PhpHighlight.php 2014-07-02 09:51:35 UTC (rev 8949) +++ trunk/lib/plugin/PhpHighlight.php 2014-07-02 14:24:57 UTC (rev 8950) @@ -107,14 +107,11 @@ static $MAXLEN = 7; foreach (array($string, $comment, $keyword, $bg, $default, $html) as $color) { $length = strlen($color); - //trigger_error(sprintf(_("DEBUG: color “%s” is length %d."), $color, $length), E_USER_NOTICE); if (($length == 7 || $length == 4) && substr($color, 0, 1) == "#" && "#" == preg_replace("/[a-fA-F0-9]/", "", $color) ) { - //trigger_error(sprintf(_("DEBUG: color “%s” appears to be hex."), $color), E_USER_NOTICE); // stop checking, ok to go } elseif (($length < $MAXLEN + 1) && in_array($color, $html4colors)) { - //trigger_error(sprintf(_("DEBUG color “%s” appears to be an HTML 4 color."), $color), E_USER_NOTICE); // stop checking, ok to go } else { trigger_error(sprintf(_("Invalid color: %s"), Modified: trunk/lib/plugin/SiteMap.php =================================================================== --- trunk/lib/plugin/SiteMap.php 2014-07-02 09:51:35 UTC (rev 8949) +++ trunk/lib/plugin/SiteMap.php 2014-07-02 14:24:57 UTC (rev 8950) @@ -83,7 +83,6 @@ static $VisitedPages = array(); $startpagename = $startpage->getName(); - //trigger_error("DEBUG: recursivelyGetBackLinks( $startpagename , $level )"); if ($level == $reclimit) return $pagearr; if (in_array($startpagename, $VisitedPages)) @@ -110,7 +109,6 @@ static $VisitedPages = array(); $startpagename = $startpage->getName(); - //trigger_error("DEBUG: recursivelyGetLinks( $startpagename , $level )"); if ($level == $reclimit) return $pagearr; if (in_array($startpagename, $VisitedPages)) @@ -118,7 +116,6 @@ array_push($VisitedPages, $startpagename); $reversed = (($this->firstreversed) && ($startpagename == $this->initialpage)); - //trigger_error("DEBUG: \$reversed = $reversed"); $pagelinks = $startpage->getLinks($reversed); while ($link = $pagelinks->next()) { $linkpagename = $link->getName(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |