Skip to content

Commit

Permalink
bug 3145: generate the pwg_token at the right time, not at prefilter …
Browse files Browse the repository at this point in the history
…time

git-svn-id: http://piwigo.org/svn/trunk@29770 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Sep 24, 2014
1 parent 775bab4 commit d74b80b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/TakeATour/main.inc.php
Expand Up @@ -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));
}

Expand Down

0 comments on commit d74b80b

Please sign in to comment.