Skip to content

Commit

Permalink
Merge pull request #432 from creative-commoners/pulls/5.1/remove-self
Browse files Browse the repository at this point in the history
ENH Use class name instead of self
  • Loading branch information
GuySartorelli authored Jun 17, 2024
2 parents 7b60a1e + 793e73d commit fafff85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/QueuedJobsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function getEditForm($id = null, $fields = null)
{
$form = parent::getEditForm($id, $fields);

$filter = $this->jobQueue->getJobListFilter(null, self::config()->max_finished_jobs_age);
$filter = $this->jobQueue->getJobListFilter(null, static::config()->max_finished_jobs_age);

$list = QueuedJobDescriptor::get()->where($filter)->sort('Created', 'DESC');

Expand Down Expand Up @@ -199,7 +199,7 @@ public function createjob($data, Form $form)

// If the user has select the European date format as their setting then replace '/' with '-' in the
// date string so PHP treats the date as this format.
if (Security::getCurrentUser()->DateFormat == self::$date_format_european) {
if (Security::getCurrentUser()->DateFormat == QueuedJobsAdmin::$date_format_european) {
$time = str_replace('/', '-', $time ?? '');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Services/QueuedJobService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ public function getJobListFilter($type = null, $includeUpUntil = 0)
*/
public function runQueue($queue)
{
if (!self::config()->get('disable_health_check')) {
if (!static::config()->get('disable_health_check')) {
$this->checkJobHealth($queue);
}
$this->checkdefaultJobs($queue);
Expand Down

0 comments on commit fafff85

Please sign in to comment.