Skip to content

Commit

Permalink
GH-91 Start using TaskType enum
Browse files Browse the repository at this point in the history
  • Loading branch information
mdziekon committed Aug 2, 2022
1 parent d15f4cd commit 46ea4ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions includes/functions/TasksFunctions.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?php

abstract class TaskType {
const UseSimulator = 'USE_SIMULATOR';
}

function Tasks_CheckUservar(&$UserVar)
{
if(empty($UserVar['tasks_done_parsed']))
Expand Down
2 changes: 1 addition & 1 deletion simulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ function ($value, $key) {
$_Lang['SimResult'] .= parsetemplate(gettemplate('simulator_result'), $parse);

// Trigger Tasks Check
Tasks_TriggerTask($_User, 'USE_SIMULATOR');
Tasks_TriggerTask($_User, TaskType::UseSimulator);
}
else
{
Expand Down

0 comments on commit 46ea4ac

Please sign in to comment.