adding relative path to a category image for subfolder installs

v1.18.x
Julian Lam 11 years ago
parent 67f1251ba3
commit 9bf1d345e2

@ -292,7 +292,7 @@ var db = require('./database'),
for (var i=0; i<categories.length; ++i) {
if (categories[i]) {
categories[i].backgroundImage = categories[i].image ? 'url(' + categories[i].image + ')' : '';
categories[i].backgroundImage = categories[i].image ? 'url(' + nconf.get('relative_path') + categories[i].image + ')' : '';
categories[i].disabled = categories[i].disabled ? parseInt(categories[i].disabled, 10) !== 0 : false;
}
}

Loading…
Cancel
Save