Code Duplication    Length = 7-7 lines in 2 locations

catalog/admin/includes/languages/english/main.php 1 location

@@ 30-36 (lines=7) @@
27
// Return date in raw format
28
// $date should be in format mm/dd/yyyy
29
// raw date is in format YYYYMMDD, or DDMMYYYY
30
function tep_date_raw($date, $reverse = false) {
31
  if ($reverse) {
32
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
33
  } else {
34
    return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
35
  }
36
}
37
38
// Global entries for the <html> tag
39
define('HTML_PARAMS','dir="ltr" lang="en"');

catalog/includes/languages/english/main.php 1 location

@@ 32-38 (lines=7) @@
29
// Return date in raw format
30
// $date should be in format mm/dd/yyyy
31
// raw date is in format YYYYMMDD, or DDMMYYYY
32
function tep_date_raw($date, $reverse = false) {
33
  if ($reverse) {
34
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
35
  } else {
36
    return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
37
  }
38
}
39
40
// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
41
define('LANGUAGE_CURRENCY', 'USD');