OGP description now acts as a replacement for page desc.
authorAlexander Ebert <ebert@woltlab.com>
Mon, 4 Mar 2013 17:25:59 +0000 (18:25 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 4 Mar 2013 17:25:59 +0000 (18:25 +0100)
wcfsetup/install/files/lib/system/MetaTagHandler.class.php

index c0137345788b72db872b5da00e8cf14103503997..3dea6b9e2b140bf74ec87ff01cb3ccf97cb89d04 100644 (file)
@@ -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;
+               }
        }
        
        /**