Found multiple class issues when removing underscores form strings. Many times classnames have been used as selectors but they contains underscore in names
I have tried to apply workaround like
but finally I get to the cases like (with rules/campaings):
It is possible to implement same solution
public function get_name_of_condition($localized = true) {
return $localized ? get_string(strreplace("", "", $this->conditionname), 'mod_booking') : $this->conditionname;
}
will work but it affects code quality.
In contrast, full refactoring of all those cases could take significant time and affects other parts of code... And even data stored in DB (json fields primarily)
Found multiple class issues when removing underscores form strings. Many times classnames have been used as selectors but they contains underscore in names
I have tried to apply workaround like
but finally I get to the cases like (with rules/campaings):
It is possible to implement same solution
public function get_name_of_condition($localized = true) { return $localized ? get_string(strreplace("", "", $this->conditionname), 'mod_booking') : $this->conditionname; }
will work but it affects code quality. In contrast, full refactoring of all those cases could take significant time and affects other parts of code... And even data stored in DB (json fields primarily)