Merge pull request #26 from icecaster/patch-1

ENHANCEMENT: Added translatable call for search page type dropdown.
This commit is contained in:
Will Rossiter 2011-09-15 19:50:43 -07:00
commit b3721d718c

View File

@ -151,7 +151,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
function SearchForm() {
// get all page types in a dropdown-compatible format
$pageTypes = SiteTree::page_type_classes();
array_unshift($pageTypes, 'All');
array_unshift($pageTypes, _t('CMSMain.PAGETYPEANYOPT','Any'));
$pageTypes = array_combine($pageTypes, $pageTypes);
asort($pageTypes);