Changeset 57290 in spip-zone for _plugins_/convertisseur/extract/docx.php


Ignore:
Timestamp:
Jan 18, 2012, 9:45:12 AM (8 years ago)
Author:
erational@…
Message:

doc2spip: correction pb chemin sur les images extraites qui tombaient à la racine du site, on les place ds IMG/convertisseur/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/convertisseur/extract/docx.php

    r56851 r57290  
    2828        $extract->docxPath = $filepath;
    2929        $extract->tempDir = $PostOffice->tempDir; # URK c'est dans le rep du plugin !
     30        $path_info = pathinfo($filepath);
    3031        $extract->content_folder = strtolower(str_replace("." . $path_info['extension'], "", str_replace(" ", "-", $path_info['basename'])));
    3132        $extract->image_max_width = $postoffice_max_image;
     
    4546        } else {
    4647                $extract->allowColor = false;
    47         }
     48        }       
    4849        $extract->Init();
    4950
Note: See TracChangeset for help on using the changeset viewer.