|
|
@ -152,12 +152,12 @@ class SessionController extends Controller{
|
|
|
|
$view->touch($path);
|
|
|
|
$view->touch($path);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
\OCP\JSON::success();
|
|
|
|
\OCP\JSON::success();
|
|
|
|
exit();
|
|
|
|
|
|
|
|
} catch (\Exception $e){
|
|
|
|
} catch (\Exception $e){
|
|
|
|
Helper::warnLog('Saving failed. Reason:' . $e->getMessage());
|
|
|
|
Helper::warnLog('Saving failed. Reason:' . $e->getMessage());
|
|
|
|
\OCP\JSON::error(array('message'=>$e->getMessage()));
|
|
|
|
//\OCP\JSON::error(array('message'=>$e->getMessage()));
|
|
|
|
exit();
|
|
|
|
\OC_Response::setStatus(500);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static function info(){
|
|
|
|
public static function info(){
|
|
|
|