From: Alexander Ebert Date: Mon, 4 Mar 2013 17:25:59 +0000 (+0100) Subject: OGP description now acts as a replacement for page desc. X-Git-Tag: 2.0.0_Beta_1~438^2^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1299e654953a5e4095e15842418d99b757203631;p=GitHub%2FWoltLab%2FWCF.git OGP description now acts as a replacement for page desc. --- diff --git a/wcfsetup/install/files/lib/system/MetaTagHandler.class.php b/wcfsetup/install/files/lib/system/MetaTagHandler.class.php index c013734578..3dea6b9e2b 100644 --- a/wcfsetup/install/files/lib/system/MetaTagHandler.class.php +++ b/wcfsetup/install/files/lib/system/MetaTagHandler.class.php @@ -67,6 +67,11 @@ class MetaTagHandler extends SingletonFactory implements \Countable, \Iterator { 'name' => $name, 'value' => $value ); + + // replace description if Open Graph Protocol tag was given + if ($name == 'og:description') { + $this->objects['description']['value'] = $value; + } } /**