From 339853e5de9a1fb63116e0bd2014df3ecc6e32aa Mon Sep 17 00:00:00 2001
From: Savetheinternet
Date: Sat, 1 Oct 2011 22:12:31 +1000
Subject: Show full filename on mouseover.
---
inc/display.php | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
(limited to 'inc/display.php')
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'] ?
+ '' .
+ substr($this->filename, 0, $config['max_filename_display']) . '…' .
+ ''
+ :
+ $this->filename
+ );
}
$built .= ')
' .
@@ -511,7 +518,14 @@
}
if($config['show_filename']) {
// Filename
- $built .= ', ' . $this->filename;
+ $built .= ', ' .
+ (strlen($this->filename) > $config['max_filename_display'] ?
+ '' .
+ substr($this->filename, 0, $config['max_filename_display']) . '…' .
+ ''
+ :
+ $this->filename
+ );
}
$built .= ')' .
--
cgit v1.3