Browse Source

Snake: Fix a problem with imasrc on heavy load

MOODLE_20_STABLE
bdaloukas 12 years ago
parent
commit
083b6be6a0
  1. 2
      locallib.php
  2. 4
      version.php

2
locallib.php

@ -1571,7 +1571,7 @@ function game_snakes_get_board( $game)
if( $board == false)
print_error( 'No board');
$board->imagesrc = $CFG->wwwroot.'/mod/game/snakes/boards/'.$board->fileboard;
list( $board->width, $board->height) = getimagesize( $board->imagesrc);
list( $board->width, $board->height) = getimagesize( __DIR__.'/snakes/boards/'.$board->fileboard);
}else
{
//user defined board

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 = 2012122801; // The current module version (Date: YYYYMMDDXX)
$module->version = 2013012601; // 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 = 'v.2.12.28 (2012122801)';
$module->release = 'v.2.13.26 (2013012601)';

Loading…
Cancel
Save