mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +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'.
|
* 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,
|
||||||
|
Loading…
Reference in New Issue
Block a user