Code Duplication    Length = 11-11 lines in 3 locations

catalog/admin/includes/functions/general.php 1 location

@@ 54-64 (lines=11) @@
51
    return strtr(trim($data), $parse);
52
  }
53
54
  function tep_output_string($string, $translate = false, $protected = false) {
55
    if ($protected == true) {
56
      return htmlspecialchars($string);
57
    } else {
58
      if ($translate == false) {
59
        return tep_parse_input_field_data($string, array('"' => '"'));
60
      } else {
61
        return tep_parse_input_field_data($string, $translate);
62
      }
63
    }
64
  }
65
66
  function tep_output_string_protected($string) {
67
    return tep_output_string($string, false, true);

catalog/includes/functions/general.php 1 location

@@ 60-70 (lines=11) @@
57
    return strtr(trim($data), $parse);
58
  }
59
60
  function tep_output_string($string, $translate = false, $protected = false) {
61
    if ($protected == true) {
62
      return htmlspecialchars($string);
63
    } else {
64
      if ($translate == false) {
65
        return tep_parse_input_field_data($string, array('"' => '"'));
66
      } else {
67
        return tep_parse_input_field_data($string, $translate);
68
      }
69
    }
70
  }
71
72
  function tep_output_string_protected($string) {
73
    return tep_output_string($string, false, true);

catalog/install/includes/functions/general.php 1 location

@@ 88-98 (lines=11) @@
85
    return strtr(trim($data), $parse);
86
  }
87
88
  function osc_output_string($string, $translate = false, $protected = false) {
89
    if ($protected == true) {
90
      return htmlspecialchars($string);
91
    } else {
92
      if ($translate == false) {
93
        return osc_parse_input_field_data($string, array('"' => '"'));
94
      } else {
95
        return osc_parse_input_field_data($string, $translate);
96
      }
97
    }
98
  }
99
?>