aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/TakeATour/main.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2014-09-24 10:56:08 +0000
committerplegall <plg@piwigo.org>2014-09-24 10:56:08 +0000
commitd74b80bbb7401874ea73f93bf557dc80153fbdb6 (patch)
tree6918a074ffa4820db606694d0e477d20f43b4ff7 /plugins/TakeATour/main.inc.php
parent775bab4d97630c2ba0b56e2facc303d1cc955e41 (diff)
bug 3145: generate the pwg_token at the right time, not at prefilter time
git-svn-id: http://piwigo.org/svn/trunk@29770 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/TakeATour/main.inc.php')
-rw-r--r--plugins/TakeATour/main.inc.php2
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));
}