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

Stop IDEs getting confused by multiple definitions of moodleform_mod #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 4 additions & 2 deletions mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@
if (defined('OUBLOG_EDIT_INSTANCE')) {

require_once($CFG->libdir.'/formslib.php');
abstract class moodleform_mod extends moodleform {
abstract class mod_oublog_mod_form_base extends moodleform {
} // Fake that we are using the moodleform_mod base class.

} else {
require_once('moodleform_mod.php');
abstract class mod_oublog_mod_form_base extends moodleform_mod {
}
}
require_once('locallib.php');

class mod_oublog_mod_form extends moodleform_mod {
class mod_oublog_mod_form extends mod_oublog_mod_form_base {

public function definition() {

Expand Down