mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #26 from icecaster/patch-1
ENHANCEMENT: Added translatable call for search page type dropdown.
This commit is contained in:
commit
b3721d718c
@ -151,7 +151,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
function SearchForm() {
|
function SearchForm() {
|
||||||
// get all page types in a dropdown-compatible format
|
// get all page types in a dropdown-compatible format
|
||||||
$pageTypes = SiteTree::page_type_classes();
|
$pageTypes = SiteTree::page_type_classes();
|
||||||
array_unshift($pageTypes, 'All');
|
array_unshift($pageTypes, _t('CMSMain.PAGETYPEANYOPT','Any'));
|
||||||
$pageTypes = array_combine($pageTypes, $pageTypes);
|
$pageTypes = array_combine($pageTypes, $pageTypes);
|
||||||
asort($pageTypes);
|
asort($pageTypes);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user