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.workspace.php

    r33 r141  
    4646          $this->user_id =& $user_id; 
    4747           
    48           $this->getPrefs($rs); 
     48          try {$this->getPrefs($rs);} catch (Exception $e) { 
     49               if (version_compare($core->getVersion('core'),'2.3','>')) { 
     50                    trigger_error($e->getMessage()); 
     51               } 
     52          } 
    4953     } 
    5054      
     
    6367                    $rs = $this->con->select($strReq); 
    6468               } catch (Exception $e) { 
    65                     trigger_error(__('Unable to retrieve prefs:').' '.$this->con->error(), E_USER_ERROR); 
     69                    //~ trigger_error(__('Unable to retrieve prefs:').' '.$this->con->error(), E_USER_ERROR); 
     70                    throw $e; 
    6671               } 
    6772          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map