]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
removed some deprecated functions
authorCash Costello <cash.costello@gmail.com>
Sat, 14 Jul 2012 15:32:14 +0000 (11:32 -0400)
committerCash Costello <cash.costello@gmail.com>
Sat, 14 Jul 2012 15:32:14 +0000 (11:32 -0400)
lib/resize.php
lib/watermark.php

index 78b5290e6199e38c7472d11926f48d96a7cbe170..b06f317caa6e1de252ac7096cbed3b39e98af1ec 100644 (file)
@@ -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/";
        }
index 5b9a4abcd0bd356d7b2de40e0cb8a5c195493b81..a2aebffd94334f977a982e7f443b3a2b29368b05 100644 (file)
@@ -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/";
        }