Fixed overwriting of meta tags
authorMarcel Werk <burntime@woltlab.com>
Tue, 28 Jun 2016 21:04:48 +0000 (23:04 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 28 Jun 2016 21:04:48 +0000 (23:04 +0200)
wcfsetup/install/files/lib/system/MetaTagHandler.class.php

index 29f5b168b31932f235f89e8ebe8d77999316147b..60fff05b5ad6c740d7ec6d3563972f3802ac6637 100644 (file)
@@ -66,7 +66,7 @@ class MetaTagHandler extends SingletonFactory implements \Countable, \Iterator {
                
                // replace description if Open Graph Protocol tag was given
                if ($name == 'og:description') {
-                       $this->objects['description']['value'] = $value;
+                       $this->addTag('description', 'description', $value);
                }
        }