- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.prefs.php
r106 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 … … 48 52 Retrieves all workspaces (and their prefs) from database, with one query. 49 53 */ 50 p ublicfunction loadPrefs()54 private function loadPrefs() 51 55 { 52 56 $strReq = 'SELECT user_id, pref_id, pref_value, '. … … 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); 62 67 throw $e; 63 68 }
Note: See TracChangeset
for help on using the changeset viewer.