Changeset 43243 in spip-zone
- Timestamp:
- Dec 30, 2010, 10:26:32 AM (10 years ago)
- Location:
- _plugins_/iterateurs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/iterateurs/iterateur/data.php
r43241 r43243 153 153 ) { 154 154 if (is_array($a = $this->command['source']) 155 OR (is_string($a) AND is_array($a = @unserialize($a))) 155 OR (is_string($a) 156 AND $a = str_replace('"', '"', $a) # fragile! 157 AND is_array($a = @unserialize($a))) 156 158 ) 157 159 $this->tableau = $a; -
_plugins_/iterateurs/iterateurs_fonctions.php
r43241 r43243 146 146 147 147 ###### BALISES 148 /** 149 * #LISTE{a,b,c,d,e} cree un #ARRAY avec les valeurs, sans preciser les cles 150 * 151 * @param <type> $p 152 * @return <type> 153 */ 154 function balise_LISTE($p) { 155 $_code = array(); 156 $n=1; 157 while ($_val = interprete_argument_balise($n++,$p)) 158 $_code[] = $_val; 159 $p->code = 'array(' . join(', ',$_code).')'; 160 $p->interdire_scripts = false; 161 return $p; 162 } 163 148 164 149 165 /**
Note: See TracChangeset
for help on using the changeset viewer.