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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user