diff --git a/locallib.php b/locallib.php index 98bbbdd..4423dda 100644 --- a/locallib.php +++ b/locallib.php @@ -661,7 +661,7 @@ class wwassignment_client { /** * @desc Constructs a singleton webwork_client. */ - function wwassignment_client() + function __construct() { global $CFG; // static associative array containing the real objects, key is classname diff --git a/mod_form.php b/mod_form.php index 136ea80..f967f1a 100644 --- a/mod_form.php +++ b/mod_form.php @@ -61,8 +61,7 @@ function definition() // $OUTPUT->help_icon('enablenotification','assignment'); $mform->addHelpButton('webwork_set', 'webwork_set', 'wwassignment'); - // Instead of the wwassign description, we should use the normal intro... - $this->add_intro_editor($config->requiremodintro); + $this->standard_intro_elements(); $features = new stdClass; $features->gradecat = true; diff --git a/view.php b/view.php index 369ee96..d38dc50 100644 --- a/view.php +++ b/view.php @@ -66,7 +66,7 @@ $PAGE->set_cacheable(true); $PAGE->set_focuscontrol(""); //$PAGE->set_button(update_module_button($cm->id, $course->id, $strwwassignment)); -$PAGE->set_button($OUTPUT->update_module_button($cm->id, 'wwassignment')); +//$PAGE->set_button($OUTPUT->update_module_button($cm->id, 'wwassignment')); //$PAGE->navbar->add($strwwassignments,"index.php?id=$course->id"); //$PAGE->navbar->add($wwassignment->name);