Skip to content

Commit

Permalink
Fixed issue #5678: usesleft field is not created by RemoteControl in …
Browse files Browse the repository at this point in the history
…tokens table

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@12125 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jan 20, 2012
1 parent 364228b commit 46eef71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions admin/remotecontrol/lsrc.helper.php
Expand Up @@ -2221,6 +2221,7 @@ function createTokenTable($iVid, $att=0)
. "remindersent C(17) DEFAULT 'N',\n "
. "remindercount int I DEFAULT 0,\n "
. "completed C(17) DEFAULT 'N',\n "
. "usesleft I DEFAULT 1,\n"
. "validfrom date ,\n "
. "validuntil date ,\n "
. "mpid I ";
Expand Down
16 changes: 8 additions & 8 deletions common_functions.php
Expand Up @@ -7364,25 +7364,25 @@ function sGetTemplatePath($sTemplateName)
global $standardtemplaterootdir, $usertemplaterootdir, $defaulttemplate;
if (isStandardTemplate($sTemplateName))
{
return $standardtemplaterootdir.'/'.$sTemplateName;
return $standardtemplaterootdir.DIRECTORY_SEPARATOR.$sTemplateName;
}
else
{
if (file_exists($usertemplaterootdir.'/'.$sTemplateName))
if (file_exists($usertemplaterootdir.DIRECTORY_SEPARATOR.$sTemplateName))
{
return $usertemplaterootdir.'/'.$sTemplateName;
return $usertemplaterootdir.DIRECTORY_SEPARATOR.$sTemplateName;
}
elseif (file_exists($usertemplaterootdir.'/'.$defaulttemplate))
elseif (file_exists($usertemplaterootdir.DIRECTORY_SEPARATOR.$defaulttemplate))
{
return $usertemplaterootdir.'/'.$defaulttemplate;
return $usertemplaterootdir.DIRECTORY_SEPARATOR.$defaulttemplate;
}
elseif (file_exists($standardtemplaterootdir.'/'.$defaulttemplate))
elseif (file_exists($standardtemplaterootdir.DIRECTORY_SEPARATOR.$defaulttemplate))
{
return $standardtemplaterootdir.'/'.$defaulttemplate;
return $standardtemplaterootdir.DIRECTORY_SEPARATOR.$defaulttemplate;
}
else
{
return $standardtemplaterootdir.'/default';
return $standardtemplaterootdir.DIRECTORY_SEPARATOR.'default';
}
}
}
Expand Down

0 comments on commit 46eef71

Please sign in to comment.