Add an 'author' entry to the context for the padCreate and padUpdate hooks.
parent
23bcccdf80
commit
a4fe0d0dc8
|
@ -105,9 +105,9 @@ Pad.prototype.appendRevision = function appendRevision(aChangeset, author) {
|
||||||
authorManager.addPad(author, this.id);
|
authorManager.addPad(author, this.id);
|
||||||
|
|
||||||
if (this.head == 0) {
|
if (this.head == 0) {
|
||||||
hooks.callAll("padCreate", {'pad':this});
|
hooks.callAll("padCreate", {'pad':this, 'author': author});
|
||||||
} else {
|
} else {
|
||||||
hooks.callAll("padUpdate", {'pad':this});
|
hooks.callAll("padUpdate", {'pad':this, 'author': author});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue