From 0c741d408ccc3b3a319f81283249dd4301e66691 Mon Sep 17 00:00:00 2001 From: "atutorlangs~/.ssh" Date: Sun, 29 Apr 2018 10:53:35 -0400 Subject: [PATCH] trim game url parts from helpme --- mods/_standard/helpme/instructor_helpme2.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mods/_standard/helpme/instructor_helpme2.php b/mods/_standard/helpme/instructor_helpme2.php index 5a6333c99..8d84f46d8 100644 --- a/mods/_standard/helpme/instructor_helpme2.php +++ b/mods/_standard/helpme/instructor_helpme2.php @@ -12,7 +12,7 @@ define('AT_INCLUDE_PATH', '../../../include/'); require_once(AT_INCLUDE_PATH.'vitals.inc.php'); -global $msg, $savant; +global $msg, $_base_href, $savant; $current_help = queryDB("SELECT help_id FROM %shelpme_user WHERE user_id ='%d'", array(TABLE_PREFIX, $member_id), true); unset($myhelp); // = ""; @@ -32,7 +32,8 @@ // Hack to remove the get.php/ added to $_base_href $_help_href = str_replace("get.php/", "", $_base_href); $_help_href = str_replace("get.php/", "", $_help_href); - + $_help_href = str_replace("gameme/badges/", "", $_help_href); + $msg->deleteHelp('CREATE_COURSE'); helpme_msg('COURSE_TOOLS', $_help_href."mods/_standard/course_tools/modules.php"); helpme_msg('MANAGE_ONOFF', '');