Merge pull request #2699 from xavidotron/develop

Add author information to the context for padCreate and padUpdate hooks.
This commit is contained in:
John McLear 2015-06-22 10:56:56 +01:00
commit 6b40961fc8
2 changed files with 4 additions and 2 deletions

View file

@ -105,9 +105,9 @@ Pad.prototype.appendRevision = function appendRevision(aChangeset, author) {
authorManager.addPad(author, this.id);
if (this.head == 0) {
hooks.callAll("padCreate", {'pad':this});
hooks.callAll("padCreate", {'pad':this, 'author': author});
} else {
hooks.callAll("padUpdate", {'pad':this});
hooks.callAll("padUpdate", {'pad':this, 'author': author});
}
};