Changeset 88299 in spip-zone


Ignore:
Timestamp:
Mar 30, 2015, 2:14:12 PM (4 years ago)
Author:
cedric@…
Message:

bugfix : occurence d'un appel de filtre qui n'existe plus et verif de la conversion table par table

Location:
_plugins_/fulltext/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/fulltext/trunk/inc/fulltext.php

    r88298 r88299  
    55include_spip('inc/rechercher');
    66
    7 function verifier_conversion() {
     7function verifier_conversion($table) {
    88        $charset = strtolower(str_replace('-', '', $GLOBALS['meta']['charset']));
    99        $necessite_conversion = false;
     
    1818                $modif = (substr($charset, 0, 3) == 'iso' ? 'convert_utf8' : 'convert_sql_utf8');
    1919                $url = generer_url_ecrire($modif);
    20                 echo "<p>" . _T('fulltext:incoherence_charset') . "<strong><a href='$url'>" . _T('fulltext:convertir_utf8') . "</a></strong></p>\n";
     20                echo _T('fulltext:incoherence_charset') . "<strong><a href='$url'>" . _T('fulltext:convertir_utf8') . "</a></strong>";
    2121        }
    2222}
  • _plugins_/fulltext/trunk/prive/squelettes/contenu/fulltext.html

    r88298 r88299  
    2626                ]
    2727        ]
     28        [<div class="warning">(#GET{table}|verifier_conversion)</div>]
    2829
    2930        #SET{regexp,^[a-z_0-9]+$}
    3031        <BOUCLE_siok(CONDITION){si #GET{engine}|=={''}|ou{#GET{engine}|strtolower|!={myisam}}|non}>
    31                 [(#ENV{regenerer}|=={#GET{table}}|ou{#ENV{regenerer}|=={tous}}|oui)
    32                         [(#GET{table}|fulltext_regenerer_index)]
    33                 ]
    3432                [(#ENV{reinitialise}|=={#GET{table}}|ou{#ENV{reinitialise}|=={tous}}|oui)
    3533                        [(#REM|fulltext_reinitialiser_document)]
     
    8078]
    8179
    82 [(#REM|verifier_conversion)]
    8380#BOITE_FERMER
Note: See TracChangeset for help on using the changeset viewer.