Changeset 141:340bbc2cd9f4
- Timestamp:
- 05/04/11 15:52:51 (14 years ago)
- Branch:
- userprefs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/index.php
r139 r141 44 44 45 45 # Check dashboard module prefs 46 $core->auth->user_prefs->addWorkspace('dashboard'); 46 47 48 47 49 if (!$core->auth->user_prefs->dashboard->prefExists('doclinks')) { 48 50 if (!$core->auth->user_prefs->dashboard->prefExists('doclinks',true)) { -
inc/core/class.dc.prefs.php
r139 r141 42 42 $this->table = $core->prefix.'pref'; 43 43 $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 } 45 49 } 46 50 … … 59 63 $rs = $this->con->select($strReq); 60 64 } 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; 62 68 } 63 69 -
inc/core/class.dc.workspace.php
r33 r141 46 46 $this->user_id =& $user_id; 47 47 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 } 49 53 } 50 54 … … 63 67 $rs = $this->con->select($strReq); 64 68 } 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; 66 71 } 67 72 }
Note: See TracChangeset
for help on using the changeset viewer.