Changeset 10214 in spip-zone
- Timestamp:
- Mar 7, 2007, 12:58:17 AM (14 years ago)
- Location:
- _plugins_/_stable_/crayons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_stable_/crayons/inc/crayons.php
r10206 r10214 3 3 if (!defined("_ECRIRE_INC_VERSION")) return; 4 4 5 define('_PREG_CRAYON', ',crayon\b[^<>\'"]+\b((\w+)-(\w+)-(\d+ ))\b,');5 define('_PREG_CRAYON', ',crayon\b[^<>\'"]+\b((\w+)-(\w+)-(\d+(?:-\w+)?))\b,'); 6 6 7 7 define('MODIFIER_FORUMS', false); -
_plugins_/_stable_/crayons/tetecrayons.php
r10192 r10214 139 139 // si cette fonction est absente, balise_EDIT_dist() met a vide 140 140 function balise_EDIT($p) { 141 $primary = $p->boucles[$p->nom_boucle ? $p->nom_boucle : $p->id_boucle]->primary; 142 $primary = explode(',',$primary); 143 $id = array(); 144 foreach($primary as $key) 145 $id[] = champ_sql(trim($key),$p); 146 $primary = implode(".'-'.",$id); 141 147 $p->code = "classe_boucle_crayon('" 142 148 . $p->boucles[$p->nom_boucle ? $p->nom_boucle : $p->id_boucle]->type_requete … … 144 150 .sinon(interprete_argument_balise(1,$p),"''") 145 151 ."," 146 . champ_sql($p->boucles[$p->nom_boucle ? $p->nom_boucle : $p->id_boucle]->primary, $p)152 . $primary 147 153 .").' '"; 148 149 154 $p->interdire_scripts = false; 150 155 return $p;
Note: See TracChangeset
for help on using the changeset viewer.