aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/resize.php6
-rw-r--r--lib/watermark.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/resize.php b/lib/resize.php
index 78b5290e6..b06f317ca 100644
--- a/lib/resize.php
+++ b/lib/resize.php
@@ -193,7 +193,7 @@ function tp_gd_resize($input_name, $output_name, $watermark, $maxwidth, $maxheig
* @return bool TRUE on success
*/
function tp_create_imagick_thumbnails($file, $prefix, $filestorename) {
- $image_sizes = get_plugin_setting('image_sizes', 'tidypics');
+ $image_sizes = elgg_get_plugin_setting('image_sizes', 'tidypics');
if (!$image_sizes) {
register_error(elgg_echo('tidypics:nosettings'));
return FALSE;
@@ -319,7 +319,7 @@ function tp_imagick_resize($input_name, $output_name, $maxwidth, $maxheight, $sq
* @return bool TRUE on success
*/
function tp_create_im_cmdline_thumbnails($file, $prefix, $filestorename) {
- $image_sizes = get_plugin_setting('image_sizes', 'tidypics');
+ $image_sizes = elgg_get_plugin_setting('image_sizes', 'tidypics');
if (!$image_sizes) {
register_error(elgg_echo('tidypics:nosettings'));
return FALSE;
@@ -423,7 +423,7 @@ function tp_im_cmdline_resize($input_name, $output_name, $maxwidth, $maxheight,
return FALSE;
}
- $im_path = get_plugin_setting('im_path', 'tidypics');
+ $im_path = elgg_get_plugin_setting('im_path', 'tidypics');
if (!$im_path) {
$im_path = "/usr/bin/";
}
diff --git a/lib/watermark.php b/lib/watermark.php
index 5b9a4abcd..a2aebffd9 100644
--- a/lib/watermark.php
+++ b/lib/watermark.php
@@ -138,7 +138,7 @@ function tp_imagick_watermark($filename) {
*/
function tp_im_cmdline_watermark($filename) {
- $watermark_text = get_plugin_setting('watermark_text', 'tidypics');
+ $watermark_text = elgg_get_plugin_setting('watermark_text', 'tidypics');
if (!$watermark_text) {
return;
}
@@ -148,7 +148,7 @@ function tp_im_cmdline_watermark($filename) {
return;
}
- $im_path = get_plugin_setting('im_path', 'tidypics');
+ $im_path = elgg_get_plugin_setting('im_path', 'tidypics');
if (!$im_path) {
$im_path = "/usr/bin/";
}