MINOR Merged from trunk

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@78167 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-06-01 20:33:45 +00:00 committed by Sam Minnee
parent 118cfc6ac0
commit 144a4e4d83

View File

@ -1076,7 +1076,7 @@ class Translatable extends DataObjectDecorator {
* @return string HTML * @return string HTML
*/ */
function MetaTags(&$tags) { function MetaTags(&$tags) {
$template = '<link rel="alternate" type="text/html" title="%s" hreflang="%s" href="%s">' . "\n"; $template = '<link rel="alternate" type="text/html" title="%s" hreflang="%s" href="%s" />' . "\n";
$translations = $this->owner->getTranslations(); $translations = $this->owner->getTranslations();
if($translations) foreach($translations as $translation) { if($translations) foreach($translations as $translation) {
$tags .= sprintf($template, $tags .= sprintf($template,