mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-30 20:42:35 +08:00
panel debug
This commit is contained in:
@@ -62,10 +62,11 @@ exports.run = ->
|
||||
app.use (req, res, next) ->
|
||||
res.locals.app = app
|
||||
res.locals.config = app.config
|
||||
res.locals.pluggable = app.pluggable
|
||||
res.locals.hooks = app.pluggable.hooks
|
||||
res.locals.t = res.t = app.i18n.getTranslator req.cookies.language
|
||||
|
||||
res.locals.selectHook = (name) ->
|
||||
return app.pluggable.selectHook req.account, name
|
||||
|
||||
language = req.cookies.language ? config.i18n.default_language
|
||||
timezone = req.cookies.timezone ? config.i18n.default_timezone
|
||||
|
||||
|
||||
Reference in New Issue
Block a user