Changeset 93484 in spip-zone for _plugins_/uploadhtml5/trunk/uploadhtml5_pipelines.php
- Timestamp:
- Dec 9, 2015, 4:17:08 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/uploadhtml5/trunk/uploadhtml5_pipelines.php
r93482 r93484 57 57 $id_objet = isset($flux['args']['contexte']['id_objet']) ? $flux['args']['contexte']['id_objet'] : 0; 58 58 59 if ( 60 $flux['args']['form'] == 'joindre_document' 61 and ( 62 isset($config['charger_public']) 63 and $config['charger_public'] 64 and !test_espace_prive() 65 ) 66 ) { 59 60 if ($flux['args']['form'] == 'joindre_document') { 61 62 /** 63 * Si on est pas sur l'espace privé et que les scripts 64 * n'ont pas été charger sur l'espace public, 65 * on ne fait rien au formulaire 66 */ 67 if (!test_espace_prive() and !$config['charger_public']) { 68 return $flux; 69 } 67 70 68 71 // Récupérer le formulaire d'upload en html5 et lui passer une partie du contexte de joindre_document … … 78 81 $flux['data'] = $uploadhtml5.$flux['data']; 79 82 } 83 elseif ($flux['args']['form'] == 'editer_logo') { 80 84 81 elseif ( 82 $flux['args']['form'] == 'editer_logo'83 and (84 isset($config['charger_public'])85 and $config['charger_public']86 and !test_espace_prive()87 )88 ) { 85 /** 86 * Si on est pas sur l'espace privé et que les scripts 87 * n'ont pas été charger sur l'espace public, 88 * on ne fait rien au formulaire 89 */ 90 if (!test_espace_prive() and !$config['charger_public']) { 91 return $flux; 92 } 89 93 90 94 $chercher_logo = charger_fonction('chercher_logo','inc');
Note: See TracChangeset
for help on using the changeset viewer.