mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-17 17:20:53 +02:00
fix relative_path
This commit is contained in:
@@ -74,7 +74,7 @@ define('forum/account/header', [
|
||||
}, callback);
|
||||
},
|
||||
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() + ')');
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user