aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-14 15:15:30 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-14 15:15:30 -0400
commit2d8b04169dda48a5dba8503d9943bdeee2c64685 (patch)
tree85a7d4f4b2c64621ba62634fddb6bfd3cfca37a6 /lib
parent2893bbf881b1bdca005b4751fbb4e7e1c52f31f8 (diff)
downloadelgg-2d8b04169dda48a5dba8503d9943bdeee2c64685.tar.gz
elgg-2d8b04169dda48a5dba8503d9943bdeee2c64685.tar.bz2
watermarking returns
Diffstat (limited to 'lib')
-rw-r--r--lib/watermark.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/watermark.php b/lib/watermark.php
index a2aebffd9..f7c228af1 100644
--- a/lib/watermark.php
+++ b/lib/watermark.php
@@ -54,11 +54,11 @@ function tp_gd_watermark($image) {
}
// plugins can do their own watermark and return false to prevent this function from running
- if (trigger_plugin_hook('tp_watermark', 'gd', $image, true) === false) {
+ if (elgg_trigger_plugin_hook('tp_watermark', 'gd', $image, true) === false) {
return;
}
- $owner = elgg_get_logged_in_user_guid();
+ $owner = elgg_get_logged_in_user_entity();
$watermark_text = tp_process_watermark_text($watermark_text, $owner);
@@ -101,7 +101,7 @@ function tp_imagick_watermark($filename) {
return true;
}
- $owner = get_loggedin_user();
+ $owner = elgg_get_logged_in_user_entity();
$watermark_text = tp_process_watermark_text($watermark_text, $owner);
@@ -144,7 +144,7 @@ function tp_im_cmdline_watermark($filename) {
}
// plugins can do their own watermark and return false to prevent this function from running
- if (trigger_plugin_hook('tp_watermark', 'imagemagick', $filename, true) === false) {
+ if (elgg_trigger_plugin_hook('tp_watermark', 'imagemagick', $filename, true) === false) {
return;
}
@@ -159,7 +159,7 @@ function tp_im_cmdline_watermark($filename) {
}
- $owner = get_loggedin_user();
+ $owner = elgg_get_logged_in_user_entity();
$watermark_text = tp_process_watermark_text($watermark_text, $owner);