Fixed little issue in helper.php for Dublin Core Metadata

This commit is contained in:
Giuseppe Di Terlizzi 2015-11-12 14:09:07 +01:00
parent ccbef54c7c
commit 891bb772fb

View file

@ -171,13 +171,16 @@ class helper_plugin_semantic extends DokuWiki_Plugin {
global $conf;
global $ID;
if (! $this->meta = $this->getMetadata()) return false;
if (! $this->meta) return false;
$license = $this->getLicense();
$contributors = array();
if (isset($this->meta['contributor'])) {
foreach ($this->meta['contributor'] as $uid => $fullname) {
$contributors[] = $fullname;
}
}
$dublin_core = array(
'DC.Title' => $this->getTitle(),