mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Print the url just in the development version
Co-authored-by: HB9HIL <80885850+HB9HIL@users.noreply.github.com>
This commit is contained in:
@@ -89,7 +89,9 @@ class cron extends CI_Controller {
|
||||
echo "CRON: " . $cron->id . " -> RUNNING...\n";
|
||||
|
||||
$url = local_url() . $cron->function;
|
||||
echo "CRON: " . $cron->id . " -> URL: " . $url . "\n";
|
||||
if (ENVIRONMENT == "development") {
|
||||
echo "CRON: " . $cron->id . " -> URL: " . $url . "\n";
|
||||
}
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
|
||||
Reference in New Issue
Block a user