Changeset 21156 in spip-zone


Ignore:
Timestamp:
Jun 28, 2008, 10:02:11 AM (11 years ago)
Author:
cam.lafit@…
Message:

changement de nom de fichier, mettre un bon prefixe

Location:
_plugins_/_dev_/doc2img
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • _plugins_/_dev_/doc2img/action/doc2img_convert.php

    r16343 r21156  
    1818
    1919    //on charge les fonctions de conversion
    20     include_spip('inc/convertir');
     20    include_spip('inc/doc2img_convertir');
    2121
    2222    //on lance la conversion du document
    23     convertir_document(_request('id_document'));
    24    
     23    $id_document = intval(_request('id_document'));
     24    if ($id_document) {
     25        convertir_document($id_document);   
     26    }
     27
    2528    //charge la page donéne par $redirect à defaut la page appelante
    26     if (empty($redirect)) {
     29#    if (empty($redirect)) {
    2730        $redirect = $_SERVER['HTTP_REFERER'];
    28     } else {
    29         $redirect = "ecrire/".rawurldecode(_request('redirect'));
    30     }
     31#    } else {
     32#        $redirect = "ecrire/".rawurldecode(_request('redirect'));
     33#    }
    3134    spip_log("redirection : ". $redirect,"doc2img");
    3235    redirige_par_entete($redirect);
    3336}
    34 
    35 
    36 
    3737?>
  • _plugins_/_dev_/doc2img/doc2img_fonctions.php

    r21143 r21156  
    3131 */   
    3232function d2c_convertir($id_document) {
    33     include_spip('inc/convertir');
     33    include_spip('inc/doc2img_convertir');
    3434    if ((is_doc2img($id_document) == false) && (can_doc2img($id_document) == true) ) {
    35         return convertir_document($id_document) ? ' ' : '';
     35        return convertir_document($id_document) ? '1' : ' ';
    3636    } else {
    3737        return '';
     
    4040
    4141function d2c_is_convert($id_document) {
    42     include_spip('inc/convertir');
     42    include_spip('inc/doc2img_convertir');
    4343    return is_doc2img($id_document) ? ' ' : '';
    4444}
    4545
    4646function d2c_can_convert($id_document) {
    47     include_spip('inc/convertir');
     47    include_spip('inc/doc2img_convertir');
    4848    return can_doc2img($id_document) ? ' ' : '';
    4949}
Note: See TracChangeset for help on using the changeset viewer.