aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/type
diff options
context:
space:
mode:
Diffstat (limited to 'type')
-rw-r--r--type/Default.class.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/type/Default.class.php b/type/Default.class.php
index 07e17aa..e3997de 100644
--- a/type/Default.class.php
+++ b/type/Default.class.php
@@ -128,7 +128,8 @@ class Type_Default {
128 function file2identifier($files) { 128 function file2identifier($files) {
129 foreach($files as $key => $file) { 129 foreach($files as $key => $file) {
130 if (is_file($file)) { 130 if (is_file($file)) {
131 $files[$key] = basename($files[$key], '.rrd'); 131 $files[$key] = preg_replace("#^$this->datadir/#u", '', $files[$key]);
132 $files[$key] = preg_replace('#\.rrd$#', '', $files[$key]);
132 } 133 }
133 } 134 }
134 135