From: <var...@us...> - 2021-02-04 18:00:48
|
Revision: 10243 http://sourceforge.net/p/phpwiki/code/10243 Author: vargenau Date: 2021-02-04 18:00:47 +0000 (Thu, 04 Feb 2021) Log Message: ----------- Remove useless DEBUG Modified Paths: -------------- trunk/lib/PageList.php trunk/lib/TextSearchQuery.php trunk/lib/WikiDB/backend/PearDB.php trunk/lib/WikiTheme.php Modified: trunk/lib/PageList.php =================================================================== --- trunk/lib/PageList.php 2021-01-16 19:56:38 UTC (rev 10242) +++ trunk/lib/PageList.php 2021-02-04 18:00:47 UTC (rev 10243) @@ -1086,23 +1086,13 @@ if ($action == 'get') { return $order . $column; } elseif ($action == 'flip_order') { - if (0 and DEBUG) - trigger_error("flip $order $column " . $this->id, E_USER_NOTICE); return ($order == '+' ? '-' : '+') . $column; } elseif ($action == 'init') { // only allowed from PageList::PageList - if (0 and DEBUG) { - if ($this->sortby($column, 'clicked')) { - trigger_error("clicked $order $column $this->id", E_USER_NOTICE); - } - } $this->_sortby[$column] = $order; // forces show icon return $order . $column; } elseif ($action == 'check') { // show icon? //if specified via arg or if clicked $show = (!empty($this->_sortby[$column]) or $this->sortby($column, 'clicked')); - if (0 and $show and DEBUG) { - trigger_error("show $order $column " . $this->id, E_USER_NOTICE); - } return $show; } elseif ($action == 'clicked') { // flip sort order? global $request; Modified: trunk/lib/TextSearchQuery.php =================================================================== --- trunk/lib/TextSearchQuery.php 2021-01-16 19:56:38 UTC (rev 10242) +++ trunk/lib/TextSearchQuery.php 2021-02-04 18:00:47 UTC (rev 10243) @@ -573,11 +573,6 @@ return false; $search = $this->workquery; $result = false; - //if (DEBUG & _DEBUG_VERBOSE) - // trigger_error("\$result = (boolean)($search);", E_USER_NOTICE); - // We might have a numerical problem: - // php-4.2.2 eval'ed as module: "9.636e+08 > 1000" false; - // php-5.1.2 cgi true, 4.2.2 cgi true eval("\$result = (boolean)($search);"); if ($result and is_array($p)) { return $this->bound(); Modified: trunk/lib/WikiDB/backend/PearDB.php =================================================================== --- trunk/lib/WikiDB/backend/PearDB.php 2021-01-16 19:56:38 UTC (rev 10242) +++ trunk/lib/WikiDB/backend/PearDB.php 2021-02-04 18:00:47 UTC (rev 10243) @@ -484,7 +484,6 @@ /* * Update link table. - * on DEBUG: delete old, deleted links from page */ function set_links($pagename, $links) { @@ -519,7 +518,6 @@ $linkid = $this->_get_pageid($linkto, true); if (!$linkid) { echo("No link for $linkto on page $pagename"); - //printSimpleTrace(debug_backtrace()); trigger_error("No link for $linkto on page $pagename"); } assert($linkid); Modified: trunk/lib/WikiTheme.php =================================================================== --- trunk/lib/WikiTheme.php 2021-01-16 19:56:38 UTC (rev 10242) +++ trunk/lib/WikiTheme.php 2021-02-04 18:00:47 UTC (rev 10243) @@ -296,8 +296,6 @@ $path = $parent->_findFile($file, 1); if ($path) { return $path; - } elseif (0 and DEBUG & (_DEBUG_VERBOSE + _DEBUG_REMOTE)) { - trigger_error("$parent->_theme/$file: not found", E_USER_NOTICE); } } if (isset($this->_default_theme)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |