Skip to content

Commit

Permalink
Fix cron response
Browse files Browse the repository at this point in the history
  • Loading branch information
Septdir committed Nov 2, 2018
1 parent c58ece6 commit 3a1abbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plg_system_jlsitemap_cron/jlsitemap_cron.php
Expand Up @@ -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('<br />', $success);
$success = explode('<br />', $success);
}

echo $success;

return true;
return $success;
}
elseif ($error)
{
Expand Down

0 comments on commit 3a1abbe

Please sign in to comment.