Hallo,
habe eine Contao Installation von 2.11 auf 3.5 aktualisiert.
Im footer gibt es 4 social logos mit den entsprechenden Links. Eins davon ist ein Facebook share button.
Dieser Code funktioniert in 2.11
PHP-Code:
<a href="share.php?p=facebook[&]u=<?php echo urlencode($this->Environment->base . $this->Environment->request); ?>[&]t=<?php echo urlencode($objPage->pageTitle); ?>" rel="nofollow" title="Auf Facebook teilen" onclick="window.open(this.href, '', 'width=760,height=570,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;"><img src="tl_files/daten/social_logos/facebook.png" alt="Facebook" width="28" height="28"></a>
Ich habe nun festgestellt, das unter Contao 3.5 der gleiche Code wie folgt umgewandelt wird:
PHP-Code:
<a href="share.php?p=facebook&u=<?php echo urlencode($this->Environment->base . $this->Environment->request); ?>&t=<?php echo urlencode($objPage->pageTitle); ?>" rel="nofollow" title="Auf Facebook teilen" onclick="window.open(this.href, '', 'width=760,height=570,modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false;"><img src="tl_files/daten/social_logos/facebook.png" alt="Facebook" width="28" height="28"></a>
Das hier: [&] wird so verändert: &
Gibt es dafür eine Lösung?
Lesezeichen