Skip to content

Commit

Permalink
increase time options globally
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Henrique Lelis de Almeida committed Mar 6, 2024
1 parent 1b1a15c commit 03c7d27
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/app/Controller/ExerciseCasesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,14 +515,19 @@ public function edit($id = null)
$this->Session->setFlash(__('This case uses a lot of memory and can not be edited in browser'));
$this->redirect(array('controller' => 'Exercises', 'action' => 'viewProfessor', $exercise['Exercise']['id']));
}
if ($id == 626) {
$timeoptions = array(
'1' => __('1sec'), '2' => __('2sec'), '3' => __('3sec'), '4' => __('4sec'), '5' => __('5sec'), '10' => __('10sec'),
'15' => __('15sec'), '20' => __('20sec'), '30' => __('30sec'), '40' => __('40sec'), '50' => __('50sec'), '60' => __('1min'),
);
} else {
$timeoptions = array('1' => __('1sec'), '2' => __('2sec'), '3' => __('3sec'), '4' => __('4sec'), '5' => __('5sec'), '10' => __('10sec'));
}
$timeoptions = array(
'1' => __('1sec'),
'2' => __('2sec'),
'3' => __('3sec'),
'4' => __('4sec'),
'5' => __('5sec'),
'10' => __('10sec'),
'20' => __('20sec'),
'30' => __('30sec'),
'40' => __('40sec'),
'50' => __('50sec'),
'60' => __('1min'),
);

$breadcrumbs = array();
$this->loadModel('Course');
Expand Down

0 comments on commit 03c7d27

Please sign in to comment.