Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Nette/Latte/Macros/UIMacros - after line 507
- $httpParams = $control->getPresenter()->getContext()->httpRequest->getQuery();
- foreach ($control->getComponents(FALSE, 'Nette\Application\UI\Multiplier') as $multiplier) {
- foreach ($httpParams as $param => $signal) {
- if ($param == 'do' && Strings::startsWith($signal, $multiplier->getName()) && ($pos = strrpos($signal, '-')) !== FALSE) {
- $child = $control->getComponent(substr($signal, 0, $pos));
- $child->snippetMode = TRUE;
- $child->render();
- $child->snippetMode = FALSE;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement