fixing undefined exception classes
This commit is contained in:
parent
240d1ae6b9
commit
85e7921b14
|
@ -64,7 +64,7 @@ class Config {
|
||||||
public static function setSystemValue( $key, $value ) {
|
public static function setSystemValue( $key, $value ) {
|
||||||
try {
|
try {
|
||||||
\OC_Config::setValue( $key, $value );
|
\OC_Config::setValue( $key, $value );
|
||||||
} catch (Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -96,7 +96,7 @@ class Config {
|
||||||
public static function setAppValue( $app, $key, $value ) {
|
public static function setAppValue( $app, $key, $value ) {
|
||||||
try {
|
try {
|
||||||
\OC_Appconfig::setValue( $app, $key, $value );
|
\OC_Appconfig::setValue( $app, $key, $value );
|
||||||
} catch (Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -131,7 +131,7 @@ class Config {
|
||||||
public static function setUserValue( $user, $app, $key, $value ) {
|
public static function setUserValue( $user, $app, $key, $value ) {
|
||||||
try {
|
try {
|
||||||
\OC_Preferences::setValue( $user, $app, $key, $value );
|
\OC_Preferences::setValue( $user, $app, $key, $value );
|
||||||
} catch (Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue