2 commits - plugins/kolab_files
Aleksander Machniak
machniak at kolabsys.com
Fri Feb 6 12:28:52 CET 2015
plugins/kolab_files/kolab_files.js | 1 -
plugins/kolab_files/lib/kolab_files_observer.php | 5 ++---
2 files changed, 2 insertions(+), 4 deletions(-)
New commits:
commit e5f37cd7cc54bb0f7e4021b5ad5ef8618dbd01e9
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Fri Feb 6 06:28:10 2015 -0500
Remove referene to undefined function kolab_files_click_on_list (#4506)
diff --git a/plugins/kolab_files/kolab_files.js b/plugins/kolab_files/kolab_files.js
index 00269fa..1a8106a 100644
--- a/plugins/kolab_files/kolab_files.js
+++ b/plugins/kolab_files/kolab_files.js
@@ -46,7 +46,6 @@ window.rcmail && window.files_api && rcmail.addEventListener('init', function()
rcmail.file_list.addEventListener('select', function(o) { kolab_files_list_select(o); })
.addEventListener('listupdate', function(e) { rcmail.triggerEvent('listupdate', e); });
- rcmail.gui_objects.filelist.parentNode.onmousedown = function(e){ return kolab_files_click_on_list(e); };
rcmail.enable_command('files-sort', 'files-search', 'files-search-reset', true);
rcmail.file_list.init();
commit 04b5afb9f53f62133f01025f9e863733cf7635e9
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Fri Feb 6 06:24:39 2015 -0500
Remove useless code
diff --git a/plugins/kolab_files/lib/kolab_files_observer.php b/plugins/kolab_files/lib/kolab_files_observer.php
index d1a1b4e..535fe79 100644
--- a/plugins/kolab_files/lib/kolab_files_observer.php
+++ b/plugins/kolab_files/lib/kolab_files_observer.php
@@ -19,9 +19,8 @@ class kolab_files_observer implements SplObserver
switch ($event['name']) {
case 'receivedHeaders':
- $target = $this->dir . DIRECTORY_SEPARATOR . $this->file;
- if (!($this->fp = @fopen($target, 'wb'))) {
- throw new Exception("Cannot open target file '{$target}'");
+ if (!$this->file || !($this->fp = @fopen($this->file, 'wb'))) {
+ throw new Exception("Cannot open target file '{$this->file}'");
}
break;
More information about the commits
mailing list