Changeset 93163 in spip-zone
- Timestamp:
- Nov 25, 2015, 3:58:28 PM (5 years ago)
- Location:
- _plugins_/massicot/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/massicot/trunk/base/massicot.php
r92755 r93163 23 23 function massicot_declarer_tables_interfaces($interfaces) { 24 24 25 if (is_null($interfaces['table_des_traitements']['FICHIER']['documents'])) { 26 $interfaces['table_des_traitements']['FICHIER']['documents'] = '%s'; 27 } 28 25 29 $interfaces['table_des_traitements']['FICHIER']['documents'] = 26 30 'massicoter_document(' . $interfaces['table_des_traitements']['FICHIER']['documents'] . ')'; … … 29 33 'massicoter_logo_document(%s, $connect, $Pile[1])'; 30 34 35 if (is_null($interfaces['table_des_traitements']['URL_DOCUMENT']['documents'])) { 36 $interfaces['table_des_traitements']['URL_DOCUMENT']['documents'] = '%s'; 37 } 38 31 39 $interfaces['table_des_traitements']['URL_DOCUMENT']['documents'] = 32 'massicoter_document(' . $interfaces['table_des_traitements'][' FICHIER']['documents'] . ')';40 'massicoter_document(' . $interfaces['table_des_traitements']['URL_DOCUMENT']['documents'] . ')'; 33 41 34 42 /* On traîte aussi les balises #HAUTEUR et #LARGEUR des documents */ … … 41 49 les logos */ 42 50 foreach (lister_tables_objets_sql() as $table => $valeurs) { 51 43 52 if ($table !== 'spip_documents') { 44 53 $interfaces['table_des_traitements'][strtoupper('LOGO_'.objet_type($table))][] = -
_plugins_/massicot/trunk/massicot_fonctions.php
r93040 r93163 179 179 $fichier = $fichier['path']; 180 180 181 /* la balise #FICHIER sur les boucles documents donne un chemin 182 relatif au dossier IMG. Il faut traiter ce cas à part */ 183 if (! file_exists($fichier)) { 184 $fichier = _DIR_IMG . $fichier; 185 } 186 181 187 list($width, $height) = getimagesize($fichier); 182 188 -
_plugins_/massicot/trunk/paquet.xml
r93041 r93163 2 2 prefix="massicot" 3 3 categorie="multimedia" 4 version="0.2. 0"4 version="0.2.1" 5 5 etat="test" 6 6 compatibilite="[3.0.17;3.1.*]"
Note: See TracChangeset
for help on using the changeset viewer.