Reverted temporary changes to core lib files

This commit is contained in:
Sam Tuke 2012-12-11 15:21:37 +00:00
parent 1fc5b1d02d
commit 31cbb5a09f
2 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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':