diff options
author | patdenice <patdenice@piwigo.org> | 2009-08-01 12:43:19 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2009-08-01 12:43:19 +0000 |
commit | dad95508bcda63584d941a025d829cf784659612 (patch) | |
tree | bef5dc102a82611814fcc5bd2675d6439773eb3b /admin | |
parent | aa20109ed00f378c403049396c89f3ac70a90443 (diff) |
Allow to add description.txt file in language directory for plugin description.
git-svn-id: http://piwigo.org/svn/trunk@3716 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r-- | admin/include/plugins.class.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/admin/include/plugins.class.php b/admin/include/plugins.class.php index 8972c1df0..fd1700447 100644 --- a/admin/include/plugins.class.php +++ b/admin/include/plugins.class.php @@ -213,7 +213,11 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id="' . $plugin_id . '"'; { $plugin['uri'] = trim($val[1]); } - if ( preg_match("|Description: (.*)|", $plg_data, $val) ) + if ($desc = load_language('description.txt', $path.'/', array('return' => true))) + { + $plugin['description'] = trim($desc); + } + elseif ( preg_match("|Description: (.*)|", $plg_data, $val) ) { $plugin['description'] = trim($val[1]); } |