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/Prefs.inc.php

    r546 r547  
    175175    {
    176176        // CLI scripts can't use prefs stored in HTTP-based protocols.
    177         if ((defined('_CLI') || 'cli' === php_sapi_name())
     177        if ($app->cli
    178178        && isset($params['storagetype'])
    179179        && in_array($params['storagetype'], array('cookie', 'session'))) {
Note: See TracChangeset for help on using the changeset viewer.