diff options
author | plegall <plg@piwigo.org> | 2014-09-24 10:57:57 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2014-09-24 10:57:57 +0000 |
commit | 335b2eda52b83d9fe500dfe46fde9d3ff6adefe9 (patch) | |
tree | fd8b662e9277fad39bc60a1e1a96f09206ed5883 /plugins/TakeATour | |
parent | 39d3c6883b181317205b2b3e31c20baf116ac3b2 (diff) |
merge r29770 from trunk to branch 2.7
bug 3145: generate the pwg_token at the right time, not at prefilter time
git-svn-id: http://piwigo.org/svn/branches/2.7@29771 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/TakeATour')
-rw-r--r-- | plugins/TakeATour/main.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TakeATour/main.inc.php b/plugins/TakeATour/main.inc.php index 54fabd1c4..406e93780 100644 --- a/plugins/TakeATour/main.inc.php +++ b/plugins/TakeATour/main.inc.php @@ -104,7 +104,7 @@ function TAT_no_photo_yet() function TAT_no_photo_yet_prefilter($content, &$smarty)
{
$search = '<div class="bigButton"><a href="{$next_step_url}">{\'I want to add photos\'|@translate}</a></div>';
- $replacement = '<div class="bigButton"><a href="'.get_root_url().'admin.php?submited_tour_path=tours/first_contact&pwg_token='.get_pwg_token().'">{\'Start the Tour\'|@translate}</a></div>';
+ $replacement = '<div class="bigButton"><a href="{$F_ACTION}?submited_tour_path=tours/first_contact&pwg_token={$pwg_token}">{\'Start the Tour\'|@translate}</a></div>';
return(str_replace($search, $replacement, $content));
}
|