Changeset 99920 in spip-zone for _plugins_/multilinguisme_par_domaines


Ignore:
Timestamp:
Oct 13, 2016, 8:12:48 AM (4 years ago)
Author:
prigent.yohann@…
Message:

Surcharger la fonction de conversion de langue.

Location:
_plugins_/multilinguisme_par_domaines
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/multilinguisme_par_domaines/multilinguisme_par_domaines_fonctions.php

    r99836 r99920  
    11<?php
     2if (!defined('_ECRIRE_INC_VERSION')) {
     3        return;
     4}
     5
    26function multilinguisme_par_domaines_trouver_url_lang($lang) {
    37        include_spip('inc/config');
     
    2024
    2125// Surcharges
    22 
    23 function action_converser() {
    24         include_spip('action/converser');
    25         $update_session = false;
    26         if (_request('arg') and spip_connect()) {
    27                 $securiser_action = charger_fonction('securiser_action', 'inc');
    28                 $securiser_action();
    29                 $update_session = true;
    30         }
    31 
    32         $lang = action_converser_changer_langue($update_session);
    33         $redirect = rawurldecode(_request('redirect'));
    34 
    35         if (!$redirect) {
    36                 $redirect = _DIR_RESTREINT_ABS;
    37         }
    38         redirige_par_entete($redirect, true);
    39 }
    4026
    4127function balise_URL_($p) {
Note: See TracChangeset for help on using the changeset viewer.