Ignore:
Timestamp:
Feb 10, 2019 9:48:46 PM (5 years ago)
Author:
anonymous
Message:

Add $app->isCLI() to replace $app->cli

File:
1 edited

Legend:

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

    r653 r665  
    178178
    179179        // CLI scripts can't use prefs stored in HTTP-based protocols.
    180         if ($app->cli
     180        if ($app->isCLI()
    181181        && isset($params['storagetype'])
    182182        && in_array($params['storagetype'], array('cookie', 'session'))) {
    183             $app->logMsg(sprintf('Storage type %s not available for CLI', $params['storagetype']), LOG_NOTICE, __FILE__, __LINE__);
     183            $app->logMsg(sprintf('Storage type %s not available for CLI', $params['storagetype']), LOG_DEBUG, __FILE__, __LINE__);
    184184        }
    185185
     
    503503        // Skip this method if not using the db.
    504504        if ('database' != $this->getParam('storagetype')) {
    505             $app->logMsg('Prefs->load() does nothing unless using a database storagetype.', LOG_NOTICE, __FILE__, __LINE__);
     505            $app->logMsg('Prefs->load() does nothing unless using a database storagetype.', LOG_DEBUG, __FILE__, __LINE__);
    506506            return true;
    507507        }
     
    559559    {
    560560        if ('database' != $this->getParam('storagetype')) {
    561             $app->logMsg('Prefs->_isLoaded() does nothing unless using a database storagetype.', LOG_NOTICE, __FILE__, __LINE__);
     561            $app->logMsg('Prefs->_isLoaded() does nothing unless using a database storagetype.', LOG_DEBUG, __FILE__, __LINE__);
    562562            return true;
    563563        }
Note: See TracChangeset for help on using the changeset viewer.