diff --git a/plg_system_jlsitemap_cron/jlsitemap_cron.php b/plg_system_jlsitemap_cron/jlsitemap_cron.php index 13f08aa..f4d141d 100644 --- a/plg_system_jlsitemap_cron/jlsitemap_cron.php +++ b/plg_system_jlsitemap_cron/jlsitemap_cron.php @@ -105,14 +105,14 @@ public function onAjaxJLSitemap_Cron() { $success = Text::sprintf('PLG_SYSTEM_JLSITEMAP_GENERATION_SUCCESS', count($urls->includes), count($urls->excludes), count($urls->all)); + + // Prepare json response if ($app->input->get('format', 'raw') == 'json') { - return explode('
', $success); + $success = explode('
', $success); } - echo $success; - - return true; + return $success; } elseif ($error) {