mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
NEW: Provide helpers for isDev/isTest/isLive in templates
This commit is contained in:
parent
eaadd40c3b
commit
095a3b70f8
@ -1134,6 +1134,9 @@ class Director implements TemplateGlobalProvider
|
||||
return [
|
||||
'absoluteBaseURL',
|
||||
'baseURL',
|
||||
'isDev',
|
||||
'isTest',
|
||||
'isLive',
|
||||
'is_ajax',
|
||||
'isAjax' => 'is_ajax',
|
||||
'BaseHref' => 'absoluteBaseURL', //@deprecated 3.0
|
||||
|
Loading…
Reference in New Issue
Block a user