Skip to content

Commit

Permalink
fix(questionrange,questionregex): bad var names
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Mar 4, 2019
1 parent a13ec8b commit 978a116
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions inc/questionrange.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ public function export($remove_uuid = false) {
return $parameter;
}

public static function import(PluginFormcreatorImportLinker $importLinker, $questions_id = 0, $fieldName = '', $parameter = []) {
public static function import(PluginFormcreatorImportLinker $importLinker, $question_id = 0, $fieldName = '', $parameter = []) {
global $DB;

// escape text fields
foreach (['range_min', 'range_max'] as $key) {
$parameter[$key] = $DB->escape($parameter[$key]);
}

parent::import($importLinker, $question_id, $fieldname, $parameter);
parent::import($importLinker, $question_id, $fieldName, $parameter);
}
}
4 changes: 2 additions & 2 deletions inc/questionregex.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ public function export($remove_uuid = false) {
return $parameter;
}

public static function import(PluginFormcreatorImportLinker $importLinker, $questions_id = 0, $fieldName = '', $parameter = []) {
public static function import(PluginFormcreatorImportLinker $importLinker, $question_id = 0, $fieldName = '', $parameter = []) {
global $DB;

// escape text fields
foreach (['regex'] as $key) {
$parameter[$key] = $DB->escape($parameter[$key]);
}

parent::import($importLinker, $question_id, $fieldname, $parameter);
parent::import($importLinker, $question_id, $fieldName, $parameter);
}
}

0 comments on commit 978a116

Please sign in to comment.