Skip to content

Commit 39ef4ac

Browse files
J9remmrflos
authored andcommitted
fix(login/*.tpl.html): remove warnings
1 parent 9329f59 commit 39ef4ac

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

tools/login/presentation/templates/default.tpl.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
// backward compatibility TODO delete this file for ectoplasme
44

5-
echo $this->render("@login/default.twig",compact([
5+
$defs = array_keys(get_defined_vars());
6+
echo $this->render("@login/default.twig",compact(array_filter([
67
"connected",
78
"user",
89
"email",
@@ -16,4 +17,6 @@
1617
// "class", // do not transfer class because LoginAction add it
1718
"nobtn",
1819
"error"
19-
]));
20+
],function($i)use($defs){
21+
return in_array($i,$defs);
22+
})));

tools/login/presentation/templates/dropdown.tpl.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
// backward compatibility TODO delete this file for ectoplasme
44

5-
echo $this->render("@login/dropdown.twig",compact([
5+
$defs = array_keys(get_defined_vars());
6+
echo $this->render("@login/dropdown.twig",compact(array_filter([
67
"connected",
78
"user",
89
"email",
@@ -16,4 +17,6 @@
1617
// "class", // do not transfer class because LoginAction add it
1718
"nobtn",
1819
"error"
19-
]));
20+
],function($i)use($defs){
21+
return in_array($i,$defs);
22+
})));

tools/login/presentation/templates/horizontal.tpl.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
// backward compatibility TODO delete this file for ectoplasme
44

5-
echo $this->render("@login/horizontal.twig",compact([
5+
$defs = array_keys(get_defined_vars());
6+
echo $this->render("@login/horizontal.twig",compact(array_filter([
67
"connected",
78
"user",
89
"email",
@@ -16,4 +17,6 @@
1617
// "class", // do not transfer class because LoginAction add it
1718
"nobtn",
1819
"error"
19-
]));
20+
],function($i)use($defs){
21+
return in_array($i,$defs);
22+
})));

tools/login/presentation/templates/modal.tpl.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
// backward compatibility TODO delete this file for ectoplasme
44

5-
echo $this->render("@login/modal.twig",compact([
5+
$defs = array_keys(get_defined_vars());
6+
echo $this->render("@login/modal.twig",compact(array_filter([
67
"connected",
78
"user",
89
"email",
@@ -16,4 +17,6 @@
1617
// "class", // do not transfer class because LoginAction add it
1718
"nobtn",
1819
"error"
19-
]));
20+
],function($i)use($defs){
21+
return in_array($i,$defs);
22+
})));

0 commit comments

Comments
 (0)