Skip to content

Commit

Permalink
removed some deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cash committed Jul 14, 2012
1 parent ad181ca commit 54707bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/resize.php
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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/";
}
Expand Down
4 changes: 2 additions & 2 deletions lib/watermark.php
Expand Up @@ -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;
}
Expand All @@ -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/";
}
Expand Down

0 comments on commit 54707bb

Please sign in to comment.