Skip to content

Commit

Permalink
trim game url parts from helpme
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrgay committed Apr 29, 2018
1 parent 27a31ac commit 0c741d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mods/_standard/helpme/instructor_helpme2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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); // = "";

Expand All @@ -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', '');
Expand Down

0 comments on commit 0c741d4

Please sign in to comment.