Skip to content

Commit

Permalink
made path to the config_loader.php relative to __dirname for unit tes…
Browse files Browse the repository at this point in the history
…ting.
  • Loading branch information
jlleblanc committed Feb 12, 2012
1 parent cdd732d commit 36ab936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config.js
Expand Up @@ -5,7 +5,7 @@ var Config = module.exports;

Config.init = function (config, callback) {
if (typeof config === "string") {
exec('php node_modules/node-joomla/config_loader.php ' + config,
exec('php ' + __dirname + '/../config_loader.php ' + config,
function (error, stdout, stderr) {
if(error) {
console.log('PHP Error: ' + error.message);
Expand Down

0 comments on commit 36ab936

Please sign in to comment.