From 93cf9f15ed8623c265593d5c822068764db3e194 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 29 Jul 2013 14:38:50 +0300 Subject: [PATCH] Fix: Problem when a question containts an apostrophe --- locallib.php | 2 ++ version.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/locallib.php b/locallib.php index 57c0fb9..d786001 100755 --- a/locallib.php +++ b/locallib.php @@ -1322,6 +1322,8 @@ function game_repairquestion( $s){ $s = substr( $s, 0, -6); } + $s = str_replace( "\'", "'", $s); + return $s; } diff --git a/version.php b/version.php index 2380e6c..cf46154 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 = 2013072604; // The current module version (Date: YYYYMMDDXX) +$module->version = 2013072901; // 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.7.26.4'; +$module->release = '3.7.29';