dépôts
/
lhc
/
web
/
www.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SPIP] ~maj v3.2.9-->v3.2.11
[lhc/web/www.git]
/
www
/
ecrire
/
public
/
assembler.php
diff --git
a/www/ecrire/public/assembler.php
b/www/ecrire/public/assembler.php
index
bbe6ba0
..
8fc3f7a
100644
(file)
--- a/
www/ecrire/public/assembler.php
+++ b/
www/ecrire/public/assembler.php
@@
-537,11
+537,10
@@
function inclure_modele($type, $id, $params, $lien, $connect = '', $env = array(
$params = array_filter(explode('|', $params));
if ($params) {
$params = array_filter(explode('|', $params));
if ($params) {
-
list(, $soustype) = each
($params);
+
$soustype = current
($params);
$soustype = strtolower(trim($soustype));
$soustype = strtolower(trim($soustype));
- if (in_array($soustype,
- array('left', 'right', 'center', 'ajax'))) {
- list(, $soustype) = each($params);
+ if (in_array($soustype, array('left', 'right', 'center', 'ajax'))) {
+ $soustype = next($params);
$soustype = strtolower($soustype);
}
$soustype = strtolower($soustype);
}