mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Removed deprecated ContentController::LangAttributes()
Use ContentLocale() instead and write attribute names suitable to XHTML/HTML instead
This commit is contained in:
parent
555ecd7f24
commit
33884acbc5
@ -340,18 +340,6 @@ HTML;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the xml:lang and lang attributes.
|
||||
*
|
||||
* @deprecated 2.5 Use ContentLocale() instead and write attribute names suitable to XHTML/HTML
|
||||
* templates directly in the template.
|
||||
*/
|
||||
public function LangAttributes() {
|
||||
Deprecation::notice('2.5', 'Use ContentLocale() instead and write attribute names suitable to XHTML/HTML instead.');
|
||||
$locale = $this->ContentLocale();
|
||||
return "xml:lang=\"$locale\" lang=\"$locale\"";
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an RFC1766 compliant locale string, e.g. 'fr-CA'.
|
||||
* Inspects the associated {@link dataRecord} for a {@link SiteTree->Locale} value if present,
|
||||
|
Loading…
Reference in New Issue
Block a user