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
This commit is contained in:
patdenice
2009-08-01 12:43:19 +00:00
parent aa20109ed0
commit dad95508bc

View File

@@ -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]);
}