Add an 'author' entry to the context for the padCreate and padUpdate hooks.
This commit is contained in:
parent
23bcccdf80
commit
a4fe0d0dc8
@ -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});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user