Fixed config API usage (unknown call to set())

This commit is contained in:
Ingo Schommer 2013-03-26 00:02:46 +01:00
parent 07d99a5136
commit 1916a6e8f4
3 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ class RestfulService extends ViewableData {
'Use the "RestfulService.default_curl_options" config setting instead, '
. 'with direct reference to the CURL_* options'
);
Config::set('RestfulService', 'default_proxy', array(
config::inst()->update('RestfulService', 'default_proxy', array(
CURLOPT_PROXY => $proxy,
CURLOPT_PROXYUSERPWD => "{$user}:{$password}",
CURLOPT_PROXYPORT => $port,

View File

@ -23,7 +23,7 @@ class GDBackend extends Object implements Image_Backend {
public static function set_default_quality($quality) {
Deprecation::notice('3.2', 'Use the "GDBackend.default_quality" config setting instead');
if(is_numeric($quality) && (int) $quality >= 0 && (int) $quality <= 100) {
Config::inst()->set('GDBackend', 'default_quality', (int) $quality);
config::inst()->update('GDBackend', 'default_quality', (int) $quality);
}
}

View File

@ -50,7 +50,7 @@ class ImagickBackend extends Imagick implements Image_Backend {
public static function set_default_quality($quality) {
Deprecation::notice('3.2', 'Use the "IMagickBackend.default_quality" config setting instead');
if(is_numeric($quality) && (int) $quality >= 0 && (int) $quality <= 100) {
Config::inst()->set('IMagickBackend', 'default_quality', (int) $quality);
config::inst()->update('IMagickBackend', 'default_quality', (int) $quality);
}
}