mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
bfojcapell: Added LangAttributes? function
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42115 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4ceb428cb5
commit
e435705685
@ -299,6 +299,13 @@ HTML;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the xml:lang and lang attributes
|
||||
*/
|
||||
function LangAttributes() {
|
||||
$lang = Translatable::current_lang();
|
||||
return "xml:lang=\"$lang\" lang=\"$lang\"";
|
||||
}
|
||||
|
||||
/**
|
||||
* Throw an error to test the error system
|
||||
|
Loading…
Reference in New Issue
Block a user