|
|
@ -36,12 +36,15 @@ editController.get = function (req, res, callback) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
userData.title = '[[pages:account/edit, ' + userData.username + ']]';
|
|
|
|
userData.title = '[[pages:account/edit, ' + userData.username + ']]';
|
|
|
|
userData.breadcrumbs = helpers.buildBreadcrumbs([{
|
|
|
|
userData.breadcrumbs = helpers.buildBreadcrumbs([
|
|
|
|
text: userData.username,
|
|
|
|
{
|
|
|
|
url: '/user/' + userData.userslug,
|
|
|
|
text: userData.username,
|
|
|
|
}, {
|
|
|
|
url: '/user/' + userData.userslug,
|
|
|
|
text: '[[user:edit]]',
|
|
|
|
},
|
|
|
|
}]);
|
|
|
|
{
|
|
|
|
|
|
|
|
text: '[[user:edit]]',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]);
|
|
|
|
userData.editButtons = [];
|
|
|
|
userData.editButtons = [];
|
|
|
|
|
|
|
|
|
|
|
|
plugins.fireHook('filter:user.account.edit', userData, function (err, userData) {
|
|
|
|
plugins.fireHook('filter:user.account.edit', userData, function (err, userData) {
|
|
|
@ -81,15 +84,19 @@ function renderRoute(name, req, res, next) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
userData.title = '[[pages:account/edit/' + name + ', ' + userData.username + ']]';
|
|
|
|
userData.title = '[[pages:account/edit/' + name + ', ' + userData.username + ']]';
|
|
|
|
userData.breadcrumbs = helpers.buildBreadcrumbs([{
|
|
|
|
userData.breadcrumbs = helpers.buildBreadcrumbs([
|
|
|
|
text: userData.username,
|
|
|
|
{
|
|
|
|
url: '/user/' + userData.userslug,
|
|
|
|
text: userData.username,
|
|
|
|
}, {
|
|
|
|
url: '/user/' + userData.userslug,
|
|
|
|
text: '[[user:edit]]',
|
|
|
|
},
|
|
|
|
url: '/user/' + userData.userslug + '/edit',
|
|
|
|
{
|
|
|
|
}, {
|
|
|
|
text: '[[user:edit]]',
|
|
|
|
text: '[[user:' + name + ']]',
|
|
|
|
url: '/user/' + userData.userslug + '/edit',
|
|
|
|
}]);
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
text: '[[user:' + name + ']]',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
res.render('account/edit/' + name, userData);
|
|
|
|
res.render('account/edit/' + name, userData);
|
|
|
|
});
|
|
|
|
});
|
|
|
|