mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 09:05:59 +00:00
Merge pull request #273 from thaissa/language-dropdown-fix
This commit is contained in:
commit
bb4d553b9c
@ -21,7 +21,7 @@ class LanguageDropdownField extends GroupedDropdownField {
|
|||||||
* @param string $list Indicates the source language list.
|
* @param string $list Indicates the source language list.
|
||||||
* Can be either Common-English, Common-Native, Locale-English, Locale-Native
|
* Can be either Common-English, Common-Native, Locale-English, Locale-Native
|
||||||
*/
|
*/
|
||||||
function __construct($name, $title, $excludeLocales = array(),
|
public function __construct($name, $title = null, $excludeLocales = array(),
|
||||||
$translatingClass = 'SiteTree', $list = 'Common-English', $instance = null
|
$translatingClass = 'SiteTree', $list = 'Common-English', $instance = null
|
||||||
) {
|
) {
|
||||||
$usedLocalesWithTitle = Translatable::get_existing_content_languages($translatingClass);
|
$usedLocalesWithTitle = Translatable::get_existing_content_languages($translatingClass);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user