diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/js/files/client.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/files/client.js b/core/js/files/client.js index 9d3f5c4a3d6..aa450df1773 100644 --- a/core/js/files/client.js +++ b/core/js/files/client.js @@ -61,6 +61,7 @@ } this._client = new dav.Client(clientOptions); this._client.xhrProvider = _.bind(this._xhrProvider, this); + this._fileInfoParsers = []; }; Client.NS_OWNCLOUD = 'http://owncloud.org/ns'; @@ -390,7 +391,7 @@ // extend the parsed data using the custom parsers _.each(this._fileInfoParsers, function(parserFunction) { - _.extend(data, parserFunction(response) || {}); + _.extend(data, parserFunction(response, data) || {}); }); return new FileInfo(data); |