From 881307d9dc5dba4c73b6898a4079ef8f507a90e2 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 5 Jun 2011 12:33:35 +0000 Subject: Fixes #127 using elgg_strtolower() for i18n support --- lib/image.php | 2 +- lib/watermark.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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; } -- cgit v1.2.3