Changeset 52334 in spip-zone


Ignore:
Timestamp:
Oct 2, 2011, 10:53:22 PM (8 years ago)
Author:
kent1@…
Message:

meilleure redirection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/spipmotion/action/spipmotion_infos.php

    r50673 r52334  
    2828        else{
    2929                action_spipmotion_infos_post($r);
    30                 spip_log("action spipmotion_infos","spipmotion");
     30                if(_request("iframe") == 'iframe') {
     31                        $redirect = parametre_url(urldecode($iframe_redirect),"show_video_infos",join(',',$documents_actifs),'&')."&iframe=iframe";
     32                }else if(_request('redirect')){
     33                        $redirect = str_replace('&','&',urldecode(_request('redirect')));
     34                }
     35                return $redirect;
    3136        }
    3237}
     
    3742        $recuperer_infos = charger_fonction('spipmotion_recuperer_infos','inc');
    3843        $infos = $recuperer_infos($id_document);
    39         if(_request("iframe") == 'iframe') {
    40                 $redirect = parametre_url(urldecode($iframe_redirect),"show_video_infos",join(',',$documents_actifs),'&')."&iframe=iframe";
    41         }else{
    42                 $redirect = urldecode(_request('redirect'));
    43         }
    44         return $redirect;
     44
    4545}
    4646
Note: See TracChangeset for help on using the changeset viewer.