Changeset 4698 in subversion


Ignore:
Timestamp:
Apr 26, 2011 3:30:45 AM (2 years ago)
Author:
alec
Message:
  • Fix fatal error from last commit (#1487884), rename rcube_gc() to gc()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_session.php

    r4696 r4698  
    167167      $oldvars = $this->vars; 
    168168    } else { // else read data again from DB 
    169       $oldvars = $this->read($key); 
     169      $oldvars = $this->db_read($key); 
    170170    } 
    171171 
    172172    if ($oldvars !== false) { 
    173173      $newvars = $this->_fixvars($vars, $oldvars); 
    174        
     174 
    175175      if ($newvars !== $oldvars) { 
    176176        $this->db->query( 
     
    194194    return true; 
    195195  } 
    196    
    197    
     196 
     197 
    198198  private function _fixvars($vars, $oldvars) 
    199199  { 
     
    212212        $newvars = $vars; 
    213213    } 
    214      
     214 
    215215    $this->unsets = array(); 
    216216    return $newvars; 
     
    247247        get_table_name('session'), $this->db->fromunixtime(time() - $maxlifetime))); 
    248248 
    249     $this->rcube_gc(); 
     249    $this->gc(); 
    250250 
    251251    return true; 
     
    316316   * Execute registered garbage collector routines 
    317317   */ 
    318   public function rcube_gc() 
     318  public function gc() 
    319319  { 
    320320    foreach ($this->gc_handlers as $fct) 
Note: See TracChangeset for help on using the changeset viewer.