Skip to content

Commit bba179f

Browse files
author
joeltaylor
committed
Correct some path bugs
1 parent a83d326 commit bba179f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/services/course.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ var path = require('path');
33

44
var Course = {
55
all() {
6-
return fs.readdirSync(path.join(__dirname, '..', 'courses'));
6+
return fs.readdirSync(path.join(__dirname, '..', '..', 'courses'));
77
},
88
find(id) {
99
if (this.all().indexOf(id) > -1) {
1010
return {
1111
name: id,
12-
challenges: require(path.join(__dirname, '..', 'courses', id, 'index.js'))
12+
challenges: require(path.join(__dirname, '..', '..', 'courses', id, 'index.js'))
1313
};
1414
} else {
1515
return { error: `invalid course ${id}` };

server/views/layouts/layout-course.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ html.courseLayout.js-courseLayout(lang='en')
3939
.preloader-progress-item
4040

4141
.preloader-img
42-
include /public/images/logo-mark-dotless.svg
42+
include /../public/images/logo-mark-dotless.svg
4343

4444
script(src='/javascripts/vendor.js')
4545
script(src='/javascripts/vendor-course.js')

0 commit comments

Comments
 (0)