mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user