All cron scripts should set the running directory for consistency

This commit is contained in:
wrongecho
2025-01-09 19:01:31 +00:00
parent 12d8894c8f
commit 7bd47b1cca
2 changed files with 6 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
<?php
// Set working directory to the directory this cron script lives at.
chdir(dirname(__FILE__));
require_once "../config.php";
// Set Timezone