Ignore:
Timestamp:
Aug 27, 2015 3:22:39 AM (9 years ago)
Author:
anonymous
Message:

Moved CLI flag to ->cli which can be forced off for tests

File:
1 edited

Legend:

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

    r546 r547  
    3737function dump($var, $display=false, $var_dump=false, $file='', $line='')
    3838{
    39     if (defined('_CLI') || 'cli' === php_sapi_name()) {
     39    if ($app->cli) {
    4040        echo "DUMP FROM: $file $line\n";
    4141    } else {
     
    6060        }
    6161    }
    62     if (defined('_CLI') || 'cli' === php_sapi_name()) {
     62    if ($app->cli) {
    6363        echo "\n";
    6464    } else {
Note: See TracChangeset for help on using the changeset viewer.