[Jaws-project-commits] jaws/html/include JawsError.php,1.3,1.4 JawsSession.php,1.11,1.12
Status: Alpha
Brought to you by:
ionmx
|
From: Pablo F. <pab...@us...> - 2005-03-17 07:30:36
|
Update of /cvsroot/jaws-project/jaws/html/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17245 Modified Files: JawsError.php JawsSession.php Log Message: Some fixes and features, for example: * Header Location MUST NOT call exit;, if its called, session variables are killed and LastResponse is lost * All errors are logged Index: JawsSession.php =================================================================== RCS file: /cvsroot/jaws-project/jaws/html/include/JawsSession.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** JawsSession.php 15 Mar 2005 19:56:54 -0000 1.11 --- JawsSession.php 17 Mar 2005 07:30:23 -0000 1.12 *************** *** 364,371 **** function GetAttribute ($name) { ! if (isset($this->_Attributes[$name])) return $this->_Attributes[$name]; ! else return null; } --- 364,372 ---- function GetAttribute ($name) { ! if (isset($this->_Attributes[$name])) { return $this->_Attributes[$name]; ! } else { return null; + } } *************** *** 382,387 **** $this->_HasChanged = true; return true; ! } else return false; } --- 383,389 ---- $this->_HasChanged = true; return true; ! } else { return false; + } } *************** *** 434,438 **** function PushLastResponse ($msg, $level = RESPONSE_WARNING) { - if (!defined ($level)) { $level = RESPONSE_WARNING; --- 436,439 ---- Index: JawsError.php =================================================================== RCS file: /cvsroot/jaws-project/jaws/html/include/JawsError.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** JawsError.php 15 Mar 2005 19:56:54 -0000 1.3 --- JawsError.php 17 Mar 2005 07:30:22 -0000 1.4 *************** *** 40,43 **** --- 40,44 ---- $this->_Message = $message; $this->_Code = $code; + $GLOBALS["log"]->Log (JAWS_LOG_ERR, "[{$code}]: {$message}", ""); } |