summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/inc/display.php b/inc/display.php
index 620e0b56..88c52a38 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -352,7 +352,14 @@
}
if($config['show_filename']) {
// Filename
- $built .= ', ' . $this->filename;
+ $built .= ', ' .
+ (strlen($this->filename) > $config['max_filename_display'] ?
+ '<span title="' . $this->filename . '">' .
+ substr($this->filename, 0, $config['max_filename_display']) . '&hellip;' .
+ '</span>'
+ :
+ $this->filename
+ );
}
$built .= ')</span></p>' .
@@ -511,7 +518,14 @@
}
if($config['show_filename']) {
// Filename
- $built .= ', ' . $this->filename;
+ $built .= ', ' .
+ (strlen($this->filename) > $config['max_filename_display'] ?
+ '<span title="' . $this->filename . '">' .
+ substr($this->filename, 0, $config['max_filename_display']) . '&hellip;' .
+ '</span>'
+ :
+ $this->filename
+ );
}
$built .= ')</span></p>' .