Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion nagios.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
*/
// @codingStandardsIgnoreStart
// Ignore required to skip codechecker error for no config.php load in class.
require_once(__DIR__ . '/../../../config.php');
$dirroot = __DIR__ . '/../../../';
if (substr($_SERVER['SCRIPT_FILENAME'], -42) == '/public/admin/tool/heartbeat/croncheck.php') {
// We are in Moodle 5.2 under the public/ sub path.
$dirroot = __DIR__ . '/../../../../';
}
require_once($dirroot . 'config.php');
// @codingStandardsIgnoreEnd
$format = '%b %d %H:%M:%S';
$now = userdate(time(), $format);
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2025121609;
$plugin->release = 2025121609; // Match release exactly to version.
$plugin->version = 2025121610;
$plugin->release = 2025121610; // Match release exactly to version.
$plugin->requires = 2020061500; // Support for 3.9 and above, due to the Check API.
$plugin->supported = [39, 405];
$plugin->component = 'tool_heartbeat';
Expand Down
Loading