aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-04-13 16:35:22 -0700
committerBrett Profitt <brett.profitt@gmail.com>2012-04-13 16:35:22 -0700
commita965e8a7bb94d8ac870fd6b773a3aa7949db960a (patch)
treedc6304801ac375ec8be72ec761dab1ab67feb5e1 /classes
parentd5ac522fcfd83c07c9eb879b6d7389be1b5c6dc2 (diff)
downloadelgg-a965e8a7bb94d8ac870fd6b773a3aa7949db960a.tar.gz
elgg-a965e8a7bb94d8ac870fd6b773a3aa7949db960a.tar.bz2
Using the original file name for photo title if none is specified.
Diffstat (limited to 'classes')
-rw-r--r--classes/TidypicsImage.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/TidypicsImage.php b/classes/TidypicsImage.php
index dd4324468..26a3483a9 100644
--- a/classes/TidypicsImage.php
+++ b/classes/TidypicsImage.php
@@ -90,7 +90,11 @@ class TidypicsImage extends ElggFile {
* @return string
*/
public function getTitle() {
- return $this->title;
+ if ($this->title) {
+ return $this->title;
+ } else {
+ return $this->originalfilename;
+ }
}
/**