Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 15-23 (lines=9) @@
12
13
////
14
// Get the installed version number
15
  function tep_get_version() {
16
    static $v;
17
18
    if (!isset($v)) {
19
      $v = trim(implode('', file(DIR_FS_CATALOG . 'includes/version.php')));
20
    }
21
22
    return $v;
23
  }
24
25
////
26
// Redirect to another page or site

catalog/includes/functions/general.php 1 location

@@ 15-23 (lines=9) @@
12
13
////
14
// Get the installed version number
15
  function tep_get_version() {
16
    static $v;
17
18
    if (!isset($v)) {
19
      $v = trim(implode('', file(DIR_FS_CATALOG . 'includes/version.php')));
20
    }
21
22
    return $v;
23
  }
24
25
////
26
// Stop from parsing any further PHP code