From b7bb4cd3d27a02b346645d7ad6a4b3550d425802 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 29 Mar 2021 12:16:12 -0700 Subject: [PATCH] Fixes #4470 Incorrect ajax output in theme manager. --- e107_admin/theme.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/e107_admin/theme.php b/e107_admin/theme.php index 82dc1ba70..a6f7e158d 100644 --- a/e107_admin/theme.php +++ b/e107_admin/theme.php @@ -68,7 +68,7 @@ $('textarea.input-custompages').suggest(':', { url: 'theme.php', async: false, data: { - mode: 'suggest' + action: 'route' } }).done(function(data) { // console.log(data); @@ -151,15 +151,10 @@ class theme_admin extends e_admin_dispatcher function init() { - - if(e_AJAX_REQUEST) + if((e_AJAX_REQUEST) && varset($_GET['action']) === 'route') { - $newRoutes = $this->getAllRoutes(); - echo json_encode($newRoutes); - - exit; }