From ab183b6e3114ad897610f0627c7b2b527c6d456d Mon Sep 17 00:00:00 2001 From: Michael Hamann Date: Sat, 29 Dec 2012 21:12:28 +0100 Subject: [PATCH] Use plugin.info.txt information in getInfo() There is still a getInfo()-function as it provides a localized description text. --- admin.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/admin.php b/admin.php index 0930bb0..43befcc 100644 --- a/admin.php +++ b/admin.php @@ -41,14 +41,9 @@ function admin_plugin_pagemove(){ * return some info */ function getInfo(){ - return array( - 'author' => 'Gary Owen, Arno Puschmann, Christoph Jähnigen', - 'email' => 'pagemove@gmail.com', - 'date' => '2011-08-11', - 'name' => 'Pagemove', - 'desc' => $this->lang['desc'], - 'url' => 'http://www.dokuwiki.org/plugin:pagemove', - ); + $result = parent::getInfo(); + $result['desc'] = $this->getLang('desc'); + return $result; } /**