Changeset 2199
- Timestamp:
- 04/24/08 20:17:43 (4 months ago)
- Files:
-
- alternc/trunk/bureau/class/m_err.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/trunk/bureau/class/m_err.php
r2198 r2199 67 67 $this->clsid=$clsid; 68 68 $this->error=$error; 69 $this->param=$param; 69 $args = func_get_args(); 70 $this->param=array_slice($args, 2); 70 71 $this->logerr(); 71 72 return true; … … 91 92 function errstr() { 92 93 if (is_string($this->error)) { 93 $ msg = strtr(_("err_".$this->clsid."_generic: ")._($this->error)."\n",$this->param);94 $str = _("err_".$this->clsid."_generic: ")._($this->error)."\n"; 94 95 } else { 95 $ msg = strtr(_("err_".$this->clsid."_".$this->error)."\n",$this->param);96 $str = _("err_".$this->clsid."_".$this->error)."\n"; 96 97 } 98 $args = array_unshift($this->param, $str); 99 $msg = call_user_func_array("sprintf", $args); 97 100 return $msg; 98 101 }
