summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2015-02-19 10:54:03 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2015-02-19 10:54:03 (GMT)
commit20f77bb71f171c6d9b0149db548d20c00a6096b6 (patch)
tree6363eb6517dcdd498ea742ed7d7080605641af69
parenta59b96e270d533cceb0884016e199fa862fc27c1 (diff)
downloadkolab-chwala-20f77bb71f171c6d9b0149db548d20c00a6096b6.tar.gz
Remove useless code
-rw-r--r--lib/drivers/seafile/seafile_request_observer.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/drivers/seafile/seafile_request_observer.php b/lib/drivers/seafile/seafile_request_observer.php
index 0ab06b5..65eae51 100644
--- a/lib/drivers/seafile/seafile_request_observer.php
+++ b/lib/drivers/seafile/seafile_request_observer.php
@@ -25,9 +25,8 @@ class seafile_request_observer implements SplObserver
switch ($event['name']) {
case 'receivedHeaders':
if ($this->file) {
- $target = $this->dir . DIRECTORY_SEPARATOR . $this->file;
- if (!($this->fp = @fopen($target, 'wb'))) {
- throw new Exception("Cannot open target file '{$target}'");
+ if (!($this->fp = @fopen($this->file, 'wb'))) {
+ throw new Exception("Cannot open target file '{$this->file}'");
}
}
else if (!$this->fp) {