Commit d6d46396 authored by Barış Soner Uşaklı's avatar Barış Soner Uşaklı
Browse files

fix: #531, acp page on subfolder install

parent ef4fd1b7
......@@ -6,9 +6,11 @@ const user = require.main.require('./src/user');
const library = module.exports;
library.init = async function (params) {
const { app, middleware } = params;
app.get('/admin/plugins/persona', middleware.admin.buildHeader, renderAdmin);
app.get('/api/admin/plugins/persona', renderAdmin);
const { router, middleware } = params;
const routeHelpers = require.main.require('./src/routes/helpers');
routeHelpers.setupAdminPageRoute(router, '/admin/plugins/persona', middleware, [], (req, res) => {
res.render('admin/plugins/persona', {});
});
};
library.addAdminNavigation = async function (header) {
......@@ -58,10 +60,6 @@ library.getThemeConfig = async function (config) {
return config;
};
function renderAdmin(req, res) {
res.render('admin/plugins/persona', {});
}
library.addUserToTopic = async function (hookData) {
const settings = await meta.settings.get('persona');
if (settings.enableQuickReply === 'on') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment