LStemplate: provide current request object as a common variable ($request)

This commit is contained in:
Benjamin Renard 2024-08-21 18:12:01 +02:00
parent 60a78290a9
commit f4bdd430b2
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -457,6 +457,7 @@ class LStemplate extends LSlog_staticLoggerClass {
LStemplate :: assign('CssFiles', self :: $CssFiles);
LStemplate :: assign('LibsCssFiles', self :: $LibsCssFiles);
LStemplate :: assign('LS_VERSION', LS_VERSION);
LStemplate :: assign('request', class_exists('LSurl') ? LSurl :: $request : null);
}
/**