Removed deprecated ContentController::LangAttributes()

Use ContentLocale() instead and write attribute names suitable
to XHTML/HTML instead
This commit is contained in:
Sean Harvey 2012-11-15 14:32:21 +13:00
parent 555ecd7f24
commit 33884acbc5

View File

@ -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'. * Returns an RFC1766 compliant locale string, e.g. 'fr-CA'.
* Inspects the associated {@link dataRecord} for a {@link SiteTree->Locale} value if present, * Inspects the associated {@link dataRecord} for a {@link SiteTree->Locale} value if present,