* adjust for tutorial.

This commit is contained in:
wangyidong
2016-04-27 08:30:32 +08:00
parent df065e18ed
commit 240b81f508
5 changed files with 15 additions and 9 deletions
+5 -1
View File
@@ -80,12 +80,16 @@ class tutorial extends control
*/
public function wizard($module, $method, $params = '')
{
define('WIZARD', true);
define('WIZARD_MODULE', $module);
define('WIZARD_METHOD', $method);
$params = helper::safe64Decode($params);
if($_POST)
{
die(js::locate(helper::createLink('tutorial', 'wizard', "module=$module&method=$method&params=$params"), 'parent'));
$target = 'parent';
if(($module == 'story' or $module == 'task' or $module == 'bug') and $method == 'create') $target = 'self';
if($module == 'project' and $method == 'linkStory') $target = 'self';
die(js::locate(helper::createLink('tutorial', 'wizard', "module=$module&method=$method&params=" . helper::safe64Encode($params)), $target));
}
die($this->fetch($module, $method, $params));
}