summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-10-01 22:12:31 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-10-01 22:12:31 +1000
commit339853e5de9a1fb63116e0bd2014df3ecc6e32aa (patch)
tree1b531791ca641fde275dc8ebb62a30705915e118 /inc/display.php
parentd62f0ee046f130befb5cc63d813129156553ab9c (diff)
Show full filename on mouseover.
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>' .