Changeset 43682 in spip-zone
- Timestamp:
- Jan 20, 2011, 1:19:40 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/couteau_suisse/inc/cs_outils.php
r42585 r43682 102 102 if(preg_match_all(',traitement:([A-Z_]+),', $serial, $regs, PREG_PATTERN_ORDER)) 103 103 $p .= '<p>' . _T('couteauprive:detail_balise_etoilee', array('bal' => '#'.join('*, #', array_unique($regs[1])).'*')) . '</p>'; 104 if( isset($outil['code:spip_options']) && strlen($outil['code:spip_options']) && ($outil_id<>'cs_comportement'))104 if($actif && isset($outil['code:spip_options']) && strlen($outil['code:spip_options']) && ($outil_id<>'cs_comportement')) 105 105 $p .= '<p>' . _T('couteauprive:detail_spip_options'.(defined('_CS_SPIP_OPTIONS_OK')?'_ok':''), array('lien'=>description_outil_liens_callback(array(1=>'cs_comportement')))) . '</p>'; 106 106 if(isset($outil['jquery']) && $outil['jquery']=='oui') … … 235 235 $erreur = false; 236 236 $dir = sous_repertoire($lib, $outil['id']); 237 $f = 'distant_' . basename($outil[$i]); 237 preg_match('/[^?]*/', basename($outil[$i]), $reg); 238 $f = 'distant_' . $reg[0]; 238 239 $file = $dir.$f; 239 240 $size = ($forcer || @(!file_exists($file)) ? 0 : filesize($file));
Note: See TracChangeset
for help on using the changeset viewer.