Twig render function fix #5

Closed
opened 2024-01-14 19:43:42 +05:00 by MIRZAEV · 2 comments
Owner

Change to look like:
изображение

return $this->twig->render('themes' . DIRECTORY_SEPARATOR . $this->twig->getGlobals()['theme'] . DIRECTORY_SEPARATOR . $file, $this->twig->mergeGlobals($variables))

Change to look like: ![изображение](/attachments/24261392-a2a0-4402-bfe6-c9ef247d4c04) `return $this->twig->render('themes' . DIRECTORY_SEPARATOR . $this->twig->getGlobals()['theme'] . DIRECTORY_SEPARATOR . $file, $this->twig->mergeGlobals($variables))`
Author
Owner

return $this->twig->render('themes' . DIRECTORY_SEPARATOR . $this->twig->getGlobals()['theme'] . DIRECTORY_SEPARATOR . $file, $this->twig->mergeGlobals($variables ?? []));

`return $this->twig->render('themes' . DIRECTORY_SEPARATOR . $this->twig->getGlobals()['theme'] . DIRECTORY_SEPARATOR . $file, $this->twig->mergeGlobals($variables ?? []));`
Author
Owner

Resolved: 0843fd83a5

Resolved: https://git.mirzaev.sexy/mirzaev/pot/commit/0843fd83a54b222e86584990279ab6074478cf01
MIRZAEV added the Error
Status
Confirmed
labels 2025-02-21 10:08:56 +05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mirzaev/pot-php#5