[Phplib-commit] CVS: php-lib-stable/php session.inc,1.18,1.19
Brought to you by:
nhruby,
richardarcher
From: Layne W. <lay...@us...> - 2005-08-06 16:37:21
|
Update of /cvsroot/phplib/php-lib-stable/php In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19020/php Modified Files: session.inc Log Message: Fixed session.inc - get_hidden_id() now returns get_hidden_session() rather than hidden_session() (this prints the output) Index: session.inc =================================================================== RCS file: /cvsroot/phplib/php-lib-stable/php/session.inc,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** session.inc 27 Oct 2003 20:41:30 -0000 1.18 --- session.inc 6 Aug 2005 16:37:12 -0000 1.19 *************** *** 244,250 **** } ! function hidden_session() ! { ! printf("<input type=\"hidden\" name=\"%s\" value=\"%s\">\n", $this->name, $this->id); } --- 244,267 ---- } ! function get_hidden_session() { ! return sprintf("<input type=\"hidden\" name=\"%s\" value=\"%s\">\n", ! $this->name, ! $this->id); ! } ! ! function hidden_session() { ! print $this->get_hidden_session(); ! } ! ! function get_hidden_id() { ! switch($this->mode) { ! case "get": ! return $this->get_hidden_session(); ! break; ! } ! } ! ! function hidden_id() { ! print $this->get_hidden_id(); } |