Ignore:
Timestamp:
May 25, 2011 9:15:54 AM (13 years ago)
Author:
anonymous
Message:

Begin using PHP 5 class features ('public static...'); updated Currency.inc.php to support Xurrency's JSON API

File:
1 edited

Legend:

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

    r376 r380  
    3535function dump($var, $display=false, $var_dump=false)
    3636{
    37     echo $display ? "\n<br /><pre>\n" : "\n\n\n<!--\n";
     37    if (defined('_CLI')) {
     38        echo "\n";
     39    } else {       
     40        echo $display ? "\n<br /><pre>\n" : "\n\n\n<!--\n";
     41    }
    3842    if ($var_dump) {
    3943        var_dump($var);
     
    4145        print_r($var);
    4246    }
    43     echo $display ?  "\n</pre><br />\n" : "\n-->\n\n\n";
     47    if (defined('_CLI')) {
     48        echo "\n";
     49    } else {       
     50        echo $display ?  "\n</pre><br />\n" : "\n-->\n\n\n";
     51    }
    4452}
    4553
Note: See TracChangeset for help on using the changeset viewer.