Dotclear


Ignore:
Timestamp:
05/04/11 15:52:51 (14 years ago)
Author:
xave <xave@…>
Branch:
userprefs
Message:

Deported the error handling found in constructors. Now we can upgrade.

File:
1 edited

Legend:

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

    r139 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      
     
    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); 
     67               throw $e; 
    6268          } 
    6369           
Note: See TracChangeset for help on using the changeset viewer.

Sites map