From 083b6be6a0970ae5b355c7e7c8333636cee5f886 Mon Sep 17 00:00:00 2001 From: bdaloukas Date: Sat, 26 Jan 2013 11:23:56 +0200 Subject: [PATCH] Snake: Fix a problem with imasrc on heavy load --- locallib.php | 2 +- version.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/locallib.php b/locallib.php index fee0c40..b12ae52 100755 --- a/locallib.php +++ b/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 diff --git a/version.php b/version.php index a975f0b..57db10e 100755 --- a/version.php +++ b/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)';