diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-06-05 12:33:35 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-06-05 12:33:35 +0000 |
commit | 881307d9dc5dba4c73b6898a4079ef8f507a90e2 (patch) | |
tree | 93a02ca9e23eac14fba63da17335f27c3946becc | |
parent | aab76ab18aa6c191dd16c3672afdacfa61ae69bb (diff) | |
download | elgg-881307d9dc5dba4c73b6898a4079ef8f507a90e2.tar.gz elgg-881307d9dc5dba4c73b6898a4079ef8f507a90e2.tar.bz2 |
Fixes #127 using elgg_strtolower() for i18n support
-rw-r--r-- | actions/flickrImportPhotoset.php | 2 | ||||
-rw-r--r-- | lib/image.php | 2 | ||||
-rw-r--r-- | lib/watermark.php | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/actions/flickrImportPhotoset.php b/actions/flickrImportPhotoset.php index eeb42d622..c92e5c795 100644 --- a/actions/flickrImportPhotoset.php +++ b/actions/flickrImportPhotoset.php @@ -206,7 +206,7 @@ foreach( $photos_to_upload as $name => $photo ) { //this will save to users folder in /image/ and organize by photo album $prefix = "image/" . $container_guid . "/"; $file = new ElggFile(); - $filestorename = strtolower(time().$name); + $filestorename = elgg_strtolower(time().$name); $file->setFilename($prefix.$filestorename . ".jpg"); //that's all flickr stores so I think this is safe $file->setMimeType($mime); $file->originalfilename = $name; diff --git a/lib/image.php b/lib/image.php index c68560df6..7f98a08d7 100644 --- a/lib/image.php +++ b/lib/image.php @@ -45,7 +45,7 @@ class TidypicsImage extends ElggFile { */ public function setOriginalFilename($originalName) { $prefix = "image/" . $this->container_guid . "/"; - $filestorename = strtolower(time() . $originalName); + $filestorename = elgg_strtolower(time() . $originalName); $this->setFilename($prefix . $filestorename); $this->originalfilename = $originalName; } diff --git a/lib/watermark.php b/lib/watermark.php index 6b16f0e4a..ce77c00e2 100644 --- a/lib/watermark.php +++ b/lib/watermark.php @@ -30,12 +30,12 @@ function tp_process_watermark_text($text, $owner) { */ function tp_get_watermark_filename($text, $owner) { - $base = strtolower($text); + $base = elgg_strtolower($text); $base = preg_replace("/[^\w-]+/", "-", $base); $base = trim($base, '-'); $filename = tp_get_img_dir(); - $filename .= strtolower($owner->username . "_" . $base . "_stamp"); + $filename .= elgg_strtolower($owner->username . "_" . $base . "_stamp"); return $filename; } |