summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php19
1 files changed, 13 insertions, 6 deletions
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 . ')</span></p>' .
-
+ if($config['show_filename']) {
+ // Filename
+ $built .= ', ' . $this->filename;
+ }
+
+ $built .= ')</span></p>' .
// Thumbnail
'<a href="' . $config['uri_img'] . $this->file.'"><img src="' . $config['uri_thumb'] . $this->thumb.'" style="width:'.$this->thumbx.'px;height:'.$this->thumby.'px;" alt="" /></a>';
} elseif($this->file == 'deleted') {
@@ -498,8 +501,12 @@
$fraction = fraction($this->filex, $this->filey, ':');
$built .= ', ' . $fraction;
}
- // Filename
- $built .= ', ' . $this->filename . ')</span></p>' .
+ if($config['show_filename']) {
+ // Filename
+ $built .= ', ' . $this->filename;
+ }
+
+ $built .= ')</span></p>' .
// Thumbnail
'<a href="' . $config['uri_img'] . $this->file.'"><img src="' . $config['uri_thumb'] . $this->thumb.'" style="width:'.$this->thumbx.'px;height:'.$this->thumby.'px;" alt="" /></a>';
} elseif($this->file == 'deleted') {
@@ -585,4 +592,4 @@
return $built;
}
};
-?> \ No newline at end of file
+?>