summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-09-10 08:04:33 +0200
committerMorris Jobke <morris.jobke@gmail.com>2013-10-07 00:09:25 +0200
commit8115c38670e78c396334d988d3c5d10021de4648 (patch)
tree8c7745c9c2d4b36ca921afdc4911887737963e94 /lib/private/legacy
parent1537410a31e5303207a612f1c0c4b42350ccb4ef (diff)
downloadnextcloud-server-8115c38670e78c396334d988d3c5d10021de4648.tar.gz
nextcloud-server-8115c38670e78c396334d988d3c5d10021de4648.zip
Remove the exception catch, this should be handled by a higher layer
And is when using index.php as entry point
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/config.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/private/legacy/config.php b/lib/private/legacy/config.php
index 7e498013737..c457979113e 100644
--- a/lib/private/legacy/config.php
+++ b/lib/private/legacy/config.php
@@ -83,11 +83,7 @@ class OC_Config {
*
*/
public static function setValue($key, $value) {
- try {
- self::$object->setValue($key, $value);
- } catch (\OC\HintException $e) {
- \OC_Template::printErrorPage($e->getMessage(), $e->getHint());
- }
+ self::$object->setValue($key, $value);
}
/**
@@ -98,10 +94,6 @@ class OC_Config {
*
*/
public static function deleteKey($key) {
- try {
- self::$object->deleteKey($key);
- } catch (\OC\HintException $e) {
- \OC_Template::printErrorPage($e->getMessage(), $e->getHint());
- }
+ self::$object->deleteKey($key);
}
}