diff --git a/inc/config.php b/inc/config.php index c15069ab..dd156c02 100644 --- a/inc/config.php +++ b/inc/config.php @@ -246,6 +246,8 @@ // Display the aspect ratio in a post's file info $config['show_ratio'] = false; + // Display the file's original filename + $config['show_filename']= true; // Directory where temporary files will be created. Not really used much yet except for some experimental stuff. $config['tmp'] = '/tmp'; diff --git a/inc/display.php b/inc/display.php index 763fcd97..f1d3dba4 100644 --- a/inc/display.php +++ b/inc/display.php @@ -351,9 +351,12 @@ $fraction = fraction($this->filex, $this->filey, ':'); $built .= ', ' . $fraction; } - // Filename - $built .= ', ' . $this->filename . ')

' . - + if($config['show_filename']) { + // Filename + $built .= ', ' . $this->filename; + } + + $built .= ')

' . // Thumbnail ''; } elseif($this->file == 'deleted') { @@ -498,8 +501,12 @@ $fraction = fraction($this->filex, $this->filey, ':'); $built .= ', ' . $fraction; } - // Filename - $built .= ', ' . $this->filename . ')

' . + if($config['show_filename']) { + // Filename + $built .= ', ' . $this->filename; + } + + $built .= ')

' . // Thumbnail ''; } elseif($this->file == 'deleted') { @@ -585,4 +592,4 @@ return $built; } }; -?> \ No newline at end of file +?>