mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Merge pull request #1557 from alicoding/issue1556
Issue #1556 - Fix meta_title is undefined
This commit is contained in:
commit
4730ff78e2
@ -24,7 +24,8 @@ function ghostLocals(req, res, next) {
|
|||||||
res.locals.version = packageInfo.version;
|
res.locals.version = packageInfo.version;
|
||||||
res.locals.path = req.path;
|
res.locals.path = req.path;
|
||||||
res.locals.csrfToken = req.csrfToken();
|
res.locals.csrfToken = req.csrfToken();
|
||||||
res.locals.ghostRoot = req.path.replace(ghost.blogGlobals().path, '');
|
// Strip off the subdir part of the path
|
||||||
|
res.locals.ghostRoot = req.path.replace(ghost.blogGlobals().path.replace(/\/$/, ''), '');
|
||||||
|
|
||||||
if (res.isAdmin) {
|
if (res.isAdmin) {
|
||||||
api.users.read({id: req.session.user}).then(function (currentUser) {
|
api.users.read({id: req.session.user}).then(function (currentUser) {
|
||||||
|
Loading…
Reference in New Issue
Block a user