Changeset 679 for trunk/lib/DB.inc.php


Ignore:
Timestamp:
May 14, 2019 2:17:07 AM (5 years ago)
Author:
anonymous
Message:

Fix minor bugs. Detect http port and add to site_port, site_url, and page_url params of App.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/DB.inc.php

    r665 r679  
    339339        $debugqry = preg_replace("/\n[\t ]+/", "\n", $query);
    340340        if ($this->getParam('db_always_debug') || $debug) {
    341             echo "<!-- ----------------- Query $this->_query_count ---------------------\n$debugqry\n-->\n";
     341            if ($debug > 1) {
     342                dump($debugqry, true, SC_DUMP_PRINT_R, __FILE__, __LINE__);
     343            } else {
     344                echo "<!-- ----------------- Query $this->_query_count ---------------------\n$debugqry\n-->\n";
     345            }
    342346        }
    343347
Note: See TracChangeset for help on using the changeset viewer.