summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-30 10:54:44 +0200
committerSamy Pessé <samypesse@gmail.com>2014-04-30 10:54:45 +0200
commit2e472654ca29c64946e678af4b4ea34e33f9dff1 (patch)
tree0b4c3b955f5e4227a74b498dd59561e492554af3
parentd46bd14678cc729304c7012f9163caa0aaf6b477 (diff)
downloadgitbook-2e472654ca29c64946e678af4b4ea34e33f9dff1.zip
gitbook-2e472654ca29c64946e678af4b4ea34e33f9dff1.tar.gz
gitbook-2e472654ca29c64946e678af4b4ea34e33f9dff1.tar.bz2
Fix error when calling hooks in site generation
-rw-r--r--lib/generate/site/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js
index e0ae1e4..4eee3ca 100644
--- a/lib/generate/site/index.js
+++ b/lib/generate/site/index.js
@@ -115,7 +115,7 @@ Generator.prototype.convertFile = function(content, _input) {
};
var _callHook = function(name) {
- return that.callHook("page:before", page)
+ return that.callHook(name, page)
.then(function(_page) {
page = _page;
return page;