mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fix ghost_head helper to not run if error page.
issue #6289 - Made quick fix to return from ghost_head helper if error page
This commit is contained in:
parent
268600d794
commit
3af224ed39
1 changed files with 5 additions and 0 deletions
|
@ -289,6 +289,11 @@ function getAjaxHelper(clientId, clientSecret) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ghost_head = function (options) {
|
ghost_head = function (options) {
|
||||||
|
// if error page do nothing
|
||||||
|
if (this.code >= 400) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// create a shortcut for theme config
|
// create a shortcut for theme config
|
||||||
blog = config.theme;
|
blog = config.theme;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue