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
This commit is contained in:
plegall
2014-09-24 10:57:57 +00:00
parent 39d3c6883b
commit 335b2eda52

View File

@@ -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));
}