Skip to content

Commit bb63f83

Browse files
committed
use global namespace
1 parent 919b662 commit bb63f83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

files/cron.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
// phpcs:disable PSR1.Files.SideEffects
44

5-
define('PACKAGE_ID', 1);
5+
\define('PACKAGE_ID', 1);
66
require_once(__DIR__ . '/global.php');
77
use wcf\data\application\ApplicationList;
88
use wcf\data\cronjob\CronjobAction;
99
use wcf\system\background\BackgroundQueueHandler;
1010
use wcf\system\WCF;
1111

12-
if (!defined('OFFLINE') || !OFFLINE) {
12+
if (!\defined('OFFLINE') || !OFFLINE) {
1313
$applicationList = new ApplicationList();
1414
$applicationList->readObjects();
1515

@@ -21,7 +21,7 @@
2121
$action->executeAction();
2222

2323
// send up to 5 outstanding mails
24-
$limit = min(5, BackgroundQueueHandler::getInstance()->getRunnableCount());
24+
$limit = \min(5, BackgroundQueueHandler::getInstance()->getRunnableCount());
2525
for ($i = 0; $i < $limit; $i++) {
2626
BackgroundQueueHandler::getInstance()->performNextJob();
2727
}

0 commit comments

Comments
 (0)