Changeset 89158 in spip-zone


Ignore:
Timestamp:
May 8, 2015, 4:57:42 PM (4 years ago)
Author:
cedric@…
Message:

Fix https://core.spip.net/issues/3412 : il faut utiliser sql_get_select() pour beneficier de la traduction des noms de table

Location:
_core_/branches/spip-3.0/plugins/textwheel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _core_/branches/spip-3.0/plugins/textwheel/inc/lien.php

    r88961 r89158  
    419419        if ($type == 'document'
    420420        AND $mime = sql_getfetsel('mime_type', 'spip_types_documents',
    421                         "extension IN (SELECT extension FROM spip_documents where id_document =".intval($id).")",
     421                        "extension IN (".sql_get_select("extension","spip_documents","id_document=".sql_quote($id)).")",
    422422                        '','','','',$connect)
    423423        )
  • _core_/branches/spip-3.0/plugins/textwheel/paquet.xml

    r87634 r89158  
    22        prefix="tw"
    33        categorie="edition"
    4         version="0.8.29"
     4        version="0.8.30"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.0.*]"
Note: See TracChangeset for help on using the changeset viewer.