Log Message:
-----------
replacing the file config.html by settings.php
in accordance with new standards for modules
Modified Files:
--------------
wwmoodle/wwassignment4/moodle/mod/wwassignment:
locallib.php
Removed Files:
-------------
wwmoodle/wwassignment4/moodle/mod/wwassignment:
test.php
Revision Data
-------------
--- wwassignment4/moodle/mod/wwassignment/test.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
- require_once("/Library/WebServer/Documents/moodle//config.php");
-error_log("begin test");
-
-global $COURSE;
-$COURSE->id=7;
-require_once("lib.php");
-require_once("locallib.php");
-error_log("test update_grades for assignment44 and user 41 mabernat");
-$wwassignment = get_record('wwassignment','id',44); //get a sample assignment id=44
-$wwassignment->cmidnumber =1; //How would we usually get this?
-wwassignment_update_grades($wwassignment, 0); //
-error_log("end test update_grades");
-// error_log("test ww_get_user_grades course 44 user 41");
-// $wwassignment = get_record('wwassignment','id',44); //get a sample assignment id=44
-// $userid =0; //user mabernat 41 user gage 2 user richman 20
-// wwassignment_get_user_grades($wwassignment,$userid);
-// error_log("end test ww_get_user_grades");
-error_log("test completed");
-
-
-?>
\ No newline at end of file
Index: locallib.php
===================================================================
RCS file: /webwork/cvs/system/wwmoodle/wwassignment4/moodle/mod/wwassignment/locallib.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -Lwwassignment4/moodle/mod/wwassignment/locallib.php -Lwwassignment4/moodle/mod/wwassignment/locallib.php -u -r1.2 -r1.3
--- wwassignment4/moodle/mod/wwassignment/locallib.php
+++ wwassignment4/moodle/mod/wwassignment/locallib.php
@@ -302,6 +302,8 @@
$this->client = new soap_client($CFG->wwassignment_rpc_wsdl,'wsdl');
$err = $this->client->getError();
if ($err) {
+ error_log($err);
+ error_log($CFG->wwassignment_rpc_wsdl);
print_error('construction_error','wwassignment');
}
$this->defaultparams = array();
|