Compare commits

...

2 commits

2 changed files with 8 additions and 6 deletions

View file

@ -131,7 +131,8 @@ class helper_plugin_semantic extends DokuWiki_Plugin
*/ */
public function getAuthor() public function getAuthor()
{ {
return ($this->meta['creator'] ? $this->meta['creator'] : null); return ( array_key_exists('creator', $this->meta ) ?
$this->meta['creator'] : null;
} }
/** /**
@ -141,7 +142,8 @@ class helper_plugin_semantic extends DokuWiki_Plugin
*/ */
public function getAuthorID() public function getAuthorID()
{ {
return ($this->meta['user'] ? $this->meta['user'] : null); return ( array_key_exists('user', $this->meta ) ?
$this->meta['user'] : null;
} }
/** /**

View file

@ -1,7 +1,7 @@
base semantic base semantic
author Giuseppe Di Terlizzi author Giuseppe Di Terlizzi, patched by vv221 for Numenaute
email giuseppe.diterlizzi@gmail.com email numenaute@vv221.fr
date 2023-02-02 date 2024-10-04
name Semantic Plugin name Semantic Plugin
desc Add Semantic Data in DokuWiki desc Add Semantic Data in DokuWiki
url http://www.dokuwiki.org/plugin:semantic url https://git.vv221.fr/numenaute.org/dokuwiki-plugin-semantic/about/