mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-04 19:57:20 +02:00
* Minor work on themes + FSE
This commit is contained in:
parent
0436dc2c3a
commit
73952a2c37
9 changed files with 88 additions and 48 deletions
|
@ -196,7 +196,6 @@ function getThemeArt(options, cb) {
|
|||
if(artInfo || Config.defaults.theme === options.themeId) {
|
||||
callback(null, artInfo);
|
||||
} else {
|
||||
console.log('trying default theme')
|
||||
options.basePath = paths.join(Config.paths.themes, Config.defaults.theme);
|
||||
|
||||
art.getArt(options.name, options, function artLoaded(err, artInfo) {
|
||||
|
@ -208,17 +207,20 @@ function getThemeArt(options, cb) {
|
|||
if(artInfo) {
|
||||
callback(null, artInfo);
|
||||
} else {
|
||||
console.log('using general art dir')
|
||||
options.basePath = Config.paths.art;
|
||||
|
||||
art.getArt(options.name, options, function artLoaded(err, artInfo) {
|
||||
console.log('cannot find art: ' + options.name)
|
||||
callback(err, artInfo);
|
||||
});
|
||||
}
|
||||
}
|
||||
],
|
||||
cb // cb(err, artInfo)
|
||||
function complete(err, artInfo) {
|
||||
if(err) {
|
||||
options.client.log.debug( { error : err }, 'Cannot find art');
|
||||
}
|
||||
cb(err, artInfo);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue