mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixed config API usage (unknown call to set())
This commit is contained in:
parent
07d99a5136
commit
1916a6e8f4
@ -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,
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user