File tree Expand file tree Collapse file tree 4 files changed +20
-8
lines changed
tools/login/presentation/templates Expand file tree Collapse file tree 4 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 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",
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+ })));
Original file line number Diff line number Diff line change 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",
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+ })));
Original file line number Diff line number Diff line change 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",
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+ })));
Original file line number Diff line number Diff line change 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",
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+ })));
You can’t perform that action at this time.
0 commit comments