fix relative_path

v1.18.x
barisusakli 9 years ago
parent cb91587567
commit 6802a76332

@ -74,7 +74,7 @@ define('forum/account/header', [
}, callback); }, callback);
}, },
function() { function() {
uploader.open(config.RELATIVE_PATH + '/api/user/' + ajaxify.data.userslug + '/uploadcover', { uid: yourid }, 0, function(imageUrlOnServer) { uploader.open(config.relative_path + '/api/user/' + ajaxify.data.userslug + '/uploadcover', { uid: yourid }, 0, function(imageUrlOnServer) {
components.get('account/cover').css('background-image', 'url(' + imageUrlOnServer + '?v=' + Date.now() + ')'); components.get('account/cover').css('background-image', 'url(' + imageUrlOnServer + '?v=' + Date.now() + ')');
}); });
}, },

Loading…
Cancel
Save