Skip to content

Commit

Permalink
Rename include()
Browse files Browse the repository at this point in the history
Rename include() to avoid problems on old php versions where this is a reserved word
  • Loading branch information
lsgs committed Jul 14, 2020
1 parent 50840a6 commit 08b63ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DateValidationActionTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ class DateValidationActionTags extends AbstractExternalModule
);

public function redcap_data_entry_form_top($project_id, $record=null, $instrument, $event_id, $group_id=null, $repeat_instance=1) {
$this->include($instrument);
$this->includeTagFunctions($instrument);
}

public function redcap_survey_page_top($project_id, $record=null, $instrument, $event_id, $group_id=null, $survey_hash=null, $response_id=null, $repeat_instance=1) {
$this->include($instrument);
$this->includeTagFunctions($instrument);
}

/**
Expand All @@ -46,7 +46,7 @@ public function redcap_every_page_before_render($project_id) {
}
}

protected function include($instrument) {
protected function includeTagFunctions($instrument) {
$taggedFields = array();
$tags = static::$Tags;
$instrumentFields = \REDCap::getDataDictionary('array', false, true, $instrument);
Expand Down

0 comments on commit 08b63ba

Please sign in to comment.