Changeset 548 for trunk/lib


Ignore:
Timestamp:
Aug 27, 2015 4:32:41 AM (9 years ago)
Author:
anonymous
Message:

Required object to test for cli

Location:
trunk/lib
Files:
2 edited

Legend:

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

    r547 r548  
    174174    public function setParam(array $params=null)
    175175    {
     176        $app =& App::getInstance();
     177
    176178        // CLI scripts can't use prefs stored in HTTP-based protocols.
    177179        if ($app->cli
  • trunk/lib/Utilities.inc.php

    r547 r548  
    3737function dump($var, $display=false, $var_dump=false, $file='', $line='')
    3838{
     39    $app =& App::getInstance();
     40
    3941    if ($app->cli) {
    4042        echo "DUMP FROM: $file $line\n";
Note: See TracChangeset for help on using the changeset viewer.