diff --git a/lib/base.php b/lib/base.php index 7809b07e55..3cec144947 100644 --- a/lib/base.php +++ b/lib/base.php @@ -351,9 +351,9 @@ class OC{ self::initPaths(); -// register_shutdown_function(array('OC_Log', 'onShutdown')); -// set_error_handler(array('OC_Log', 'onError')); -// set_exception_handler(array('OC_Log', 'onException')); + register_shutdown_function(array('OC_Log', 'onShutdown')); + set_error_handler(array('OC_Log', 'onError')); + set_exception_handler(array('OC_Log', 'onException')); // set debug mode if an xdebug session is active if (!defined('DEBUG') || !DEBUG) { diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php index ff005c457c..726ffeb33c 100644 --- a/lib/filestorage/local.php +++ b/lib/filestorage/local.php @@ -75,7 +75,7 @@ class OC_Filestorage_Local extends OC_Filestorage_Common{ return $result; } - public function file_get_contents($path) {//trigger_error("path (get contents) = ".var_export($path, 1)); + public function file_get_contents($path) { return file_get_contents($this->datadir.$path); } public function file_put_contents($path,$data) { @@ -108,7 +108,7 @@ class OC_Filestorage_Local extends OC_Filestorage_Common{ } return copy($this->datadir.$path1,$this->datadir.$path2); } - public function fopen($path,$mode) {//trigger_error("path (fopen) = ".var_export($path, 1)); + public function fopen($path,$mode) { if($return=fopen($this->datadir.$path,$mode)) { switch($mode) { case 'r':