Changeset 29770 for trunk/plugins


Ignore:
Timestamp:
Sep 24, 2014, 12:56:08 PM (10 years ago)
Author:
plg
Message:

bug 3145: generate the pwg_token at the right time, not at prefilter time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/TakeATour/main.inc.php

    r29713 r29770  
    105105{
    106106  $search = '<div class="bigButton"><a href="{$next_step_url}">{\'I want to add photos\'|@translate}</a></div>';
    107   $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>';
     107  $replacement = '<div class="bigButton"><a href="{$F_ACTION}?submited_tour_path=tours/first_contact&pwg_token={$pwg_token}">{\'Start the Tour\'|@translate}</a></div>';
    108108  return(str_replace($search, $replacement, $content));
    109109}
Note: See TracChangeset for help on using the changeset viewer.