1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Fixes #4470 Incorrect ajax output in theme manager.

This commit is contained in:
Cameron
2021-03-29 12:16:12 -07:00
parent 9053e6170f
commit b7bb4cd3d2

View File

@@ -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;
}