From 5cc8de829c0a7b86c8df27293f4825d0e340d592 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Fri, 16 Mar 2012 22:51:12 -0700 Subject: Fixes #14. Fixed uploadify. --- lib/watermark.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/watermark.php') diff --git a/lib/watermark.php b/lib/watermark.php index ce77c00e2..5b9a4abcd 100644 --- a/lib/watermark.php +++ b/lib/watermark.php @@ -48,7 +48,7 @@ function tp_get_watermark_filename($text, $owner) { function tp_gd_watermark($image) { global $CONFIG; - $watermark_text = get_plugin_setting('watermark_text', 'tidypics'); + $watermark_text = elgg_get_plugin_setting('watermark_text', 'tidypics'); if (!$watermark_text) { return; } @@ -58,7 +58,7 @@ function tp_gd_watermark($image) { return; } - $owner = get_loggedin_user(); + $owner = elgg_get_logged_in_user_guid(); $watermark_text = tp_process_watermark_text($watermark_text, $owner); @@ -91,13 +91,13 @@ function tp_gd_watermark($image) { */ function tp_imagick_watermark($filename) { - $watermark_text = get_plugin_setting('watermark_text', 'tidypics'); + $watermark_text = elgg_get_plugin_setting('watermark_text', 'tidypics'); if (!$watermark_text) { return false; } // plugins can do their own watermark and return false to prevent this function from running - if (trigger_plugin_hook('tp_watermark', 'imagick', $filename, true) === false) { + if (elgg_trigger_plugin_hook('tp_watermark', 'imagick', $filename, true) === false) { return true; } -- cgit v1.2.3