Permalink
Browse files

v0.4-style config inclusion

  • Loading branch information...
1 parent def9ab7 commit 0ddac1d7c3e1053e984163140c5e4c55470b2e2d @thejh committed Dec 30, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 index.js
  2. +1 −1 user.js
View
@@ -1,4 +1,4 @@
-var config = require('./config')
+var config = exports.config = JSON.parse(require('fs').readFileSync(__dirname+'/config.json', 'utf8'))
, Relax = require('relax')
, vacuum = require('vacuum')
, ramstatic = require('ram-static')
View
@@ -5,7 +5,7 @@ exports.checkSignedLogin = checkSignedLogin
var forum = require('./')
, pwhash = require('password-hash')
, crypto = require('crypto')
- , config = require('./config')
+ , config = forum.config
var USERNAME = /^\w+$/

0 comments on commit 0ddac1d

Please sign in to comment.