Changeset 564 for trunk/lib


Ignore:
Timestamp:
Mar 5, 2016 4:07:19 AM (8 years ago)
Author:
anonymous
Message:

Fixed db_server=>localhost regression. Removed Auth->initDB from Auth->clear. Enabled logging by default for cb cli scripts.

Location:
trunk/lib
Files:
2 edited

Legend:

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

    r563 r564  
    163163        $app =& App::getInstance();
    164164        $db =& DB::getInstance();
    165 
    166165
    167166        static $_db_tested = false;
     
    323322        $db =& DB::getInstance();
    324323
    325         $this->initDB();
    326 
    327324        if ($this->get('user_id', false)) {
     325
     326            $this->initDB();
     327
    328328            // FIX ME: Should we check if the session is active?
    329329            $db->query("
  • trunk/lib/DB.inc.php

    r563 r564  
    149149        if (!$this->getParam('db_server')) {
    150150            // If db_server not specified, assume localhost.
    151             $this->setParam('db_server', 'localhost');
     151            $this->setParam(array('db_server' => 'localhost'));
    152152        }
    153153
Note: See TracChangeset for help on using the changeset viewer.