Dotclear


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.prefs.php

    r106 r141  
    4242          $this->table = $core->prefix.'pref'; 
    4343          $this->user_id =& $user_id; 
    44           //~ $this->loadPrefs(); 
     44          try {$this->loadPrefs();} catch (Exception $e) { 
     45               if (version_compare($core->getVersion('core'),'2.3','>')) { 
     46                    trigger_error($e->getMessage()); 
     47               } 
     48          } 
    4549     } 
    4650      
     
    4852     Retrieves all workspaces (and their prefs) from database, with one query.  
    4953     */ 
    50      public function loadPrefs() 
     54     private function loadPrefs() 
    5155     { 
    5256          $strReq = 'SELECT user_id, pref_id, pref_value, '. 
     
    5963               $rs = $this->con->select($strReq); 
    6064          } catch (Exception $e) { 
    61                trigger_error(__('Unable to retrieve workspaces:').' '.$this->con->error(), E_USER_ERROR); 
     65               //~ trigger_error(__('Unable to retrieve workspaces:').' '.$this->con->error(), E_USER_ERROR); 
     66               //~ throw new Exception(__('Unable to retrieve workspaces:').' '.$this->con->error(), E_USER_ERROR); 
    6267               throw $e; 
    6368          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map