mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +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',
|
url: 'theme.php',
|
||||||
async: false,
|
async: false,
|
||||||
data: {
|
data: {
|
||||||
mode: 'suggest'
|
action: 'route'
|
||||||
}
|
}
|
||||||
}).done(function(data) {
|
}).done(function(data) {
|
||||||
// console.log(data);
|
// console.log(data);
|
||||||
@@ -151,15 +151,10 @@ class theme_admin extends e_admin_dispatcher
|
|||||||
function init()
|
function init()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if((e_AJAX_REQUEST) && varset($_GET['action']) === 'route')
|
||||||
if(e_AJAX_REQUEST)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
$newRoutes = $this->getAllRoutes();
|
$newRoutes = $this->getAllRoutes();
|
||||||
|
|
||||||
echo json_encode($newRoutes);
|
echo json_encode($newRoutes);
|
||||||
|
|
||||||
|
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user