mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-02 22:28:38 +02:00
BUGFIX Removed obsolete CMSMain->EditingLang(), not used any longer (see #3997)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76731 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0a362cc542
commit
9da24cdfb5
@ -1439,18 +1439,7 @@ JS;
|
|||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
function IsTranslatableEnabled() {
|
function IsTranslatableEnabled() {
|
||||||
return Translatable::is_enabled();
|
return Object::has_extension('SiteTree', 'Translatable');
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the name of the language that we are translating in
|
|
||||||
*/
|
|
||||||
function EditingLang() {
|
|
||||||
if(!Translatable::is_default_locale()) {
|
|
||||||
return i18n::get_locale_name(Translatable::current_locale());
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user