Browse Source

Fix: Remove time limit

MOODLE_20_STABLE
bdaloukas 11 years ago
parent
commit
e4dd3cab3c
  1. 2
      cross/cross_class.php
  2. 4
      sudoku/create.php
  3. 4
      version.php

2
cross/cross_class.php

@ -135,7 +135,7 @@ class Cross
}
$this->computepuzzleinfo( $this->m_best_N20, $this->m_best_cross_pos, $this->m_best_cross_dir, $this->m_best_cross_word, false);
set_time_limit( 30);
//set_time_limit( 30);
return $this->savepuzzle( $crossm, $crossd, $ctries, time()-$t1);
}

4
sudoku/create.php

@ -51,7 +51,7 @@ function AppendSudokuB()
for( $i=1; $i <= $count; $i++)
{
set_time_limit( 30);
//set_time_limit( 30);
Create( $si, $sp, $level);
$newrec->data = PackSudoku( $si, $sp);
@ -104,7 +104,7 @@ function create( &$si, &$sp, $level=1)
{
for( $i=1; $i <= 40; $i++)
{
set_time_limit( 30);
//set_time_limit( 30);
$sp = new Sudoku() ;
$theInitialPosition = $sp->generatePuzzle( 10, 50, $level) ;
if( count( $theInitialPosition)){

4
version.php

@ -11,7 +11,7 @@
defined('MOODLE_INTERNAL') || die();
$module->component = 'mod_game'; // Full name of the plugin (used for diagnostics)
$module->version = 2013120201; // The current module version (Date: YYYYMMDDXX)
$module->version = 2013120202; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2010112400; // Requires Moodle 2.0
$module->cron = 0; // Period for cron to check this module (secs)
$module->release = '3.12.2.1';
$module->release = '3.12.2.2';

Loading…
Cancel
Save