Skip to content

Commit

Permalink
Merge pull request #2814 from drshawnkwang/sak_fix_teamimport
Browse files Browse the repository at this point in the history
ops: Fix bug in team import, wrong include path fixed.
  • Loading branch information
lfield authored Nov 14, 2018
2 parents 7e9d41b + 0a8070b commit 428cd25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion html/ops/team_import.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
require_once("../inc/team.inc");
require_once("../inc/email.inc");
require_once("../project/project.inc");
require_once("../consent.inc");
require_once("../inc/consent.inc");

if (defined('INVITE_CODES')) {
echo "Account creation is protected by invitation codes, so not importing teams";
Expand Down Expand Up @@ -70,6 +70,7 @@ function parse_team($f) {
else if (strstr($s, '<type>')) $t->type = parse_element($s, '<type>');
else if (strstr($s, '<name_html>')) $t->name_html = parse_element($s, '<name_html>');
else if (strstr($s, '<description>')) {
$t->description = '';
while ($s = fgets($f)) {
if (strstr($s, '</description>')) break;
$t->description .= $s;
Expand Down

0 comments on commit 428cd25

Please sign in to comment.