Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some deprecation warnings #6

Open
wants to merge 4 commits into
base: ver3.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down