From: pkiddie <pk...@us...> - 2005-08-17 11:24:14
|
Update of /cvsroot/stack/stack-1-0/frontend_general In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23006/frontend_general Modified Files: Tag: development_xmlrqp question_bank_util.php Log Message: Mini changes to ensure all metadata is written out into the schema correctly, question done, quizzes in progress Index: question_bank_util.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/frontend_general/question_bank_util.php,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** question_bank_util.php 14 Jul 2005 18:44:54 -0000 1.3 --- question_bank_util.php 17 Aug 2005 11:24:06 -0000 1.3.2.1 *************** *** 95,99 **** */ function stack_get_question($source) { ! $question = NULL; --- 95,100 ---- */ function stack_get_question($source) { ! global $stack_web_url,$user; ! $question = NULL; *************** *** 111,116 **** if ('new' == $source or NULL == $question) { ! $question['questionID']='0'; ! $question['questionAnsKey']='ans1'; } return $question; --- 112,129 ---- if ('new' == $source or NULL == $question) { ! ! show_array($user); ! $question['questionID'] = '0'; ! $question['questionAnsKey'] = 'ans1'; ! $question['questionGUID'] = stack_generate_guid($stack_web_url); ! $question['questionFormat'] = 'text/xml; charset="utf-8"'; ! $question['questionPublisher'] = $stack_web_url; ! $question['type'] = 'question'; ! $question['questionUserLastEdited'] = $user['firstname']." ".$user['lastname']; ! ! if ($user['email']!='') ! { ! $question['questionUserLastEdited'].=' <'.$user['email'].'>'; ! } } return $question; |