aboutsummaryrefslogtreecommitdiffstats
path: root/admin/plugins_update.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2009-02-13 20:49:03 +0000
committerpatdenice <patdenice@piwigo.org>2009-02-13 20:49:03 +0000
commit290f2c1d39d1c47d48ba4e6a6d347459975e8b0f (patch)
treee330eef287b07298d5acf37c9829beeacc16fb85 /admin/plugins_update.php
parent83d87c3d02844bd6fab391923e04913f35d99359 (diff)
- Show number of downloads in plugins list.
- Allow to sort plugins by number of downloads. - Fix plugin revision URL (no more revision_view in PEM). git-svn-id: http://piwigo.org/svn/trunk@3143 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/plugins_update.php')
-rw-r--r--admin/plugins_update.php29
1 files changed, 17 insertions, 12 deletions
diff --git a/admin/plugins_update.php b/admin/plugins_update.php
index b92ed836d..e6d6705fe 100644
--- a/admin/plugins_update.php
+++ b/admin/plugins_update.php
@@ -86,7 +86,7 @@ if (isset($_GET['upgradestatus']) and isset($_GET['plugin']))
default:
array_push($page['errors'],
- sprintf(l10n('plugins_extract_error'), $_GET['installstatus']),
+ sprintf(l10n('plugins_extract_error'), $_GET['upgradestatus']),
l10n('plugins_check_chmod'));
}
}
@@ -108,19 +108,25 @@ if ($plugins->get_server_plugins())
list($date, ) = explode(' ', $plugin_info['revision_date']);
- $ver_desc = sprintf(l10n('plugins_description'),
- $plugin_info['revision_name'],
- $date,
- $plugin_info['revision_description']);
+ $ext_desc = '<i>'.l10n('Downloads').':</i> '.$plugin_info['extension_nb_downloads']."\r\n"
+ ."\r\n"
+ .$plugin_info['extension_description'];
+
+ $rev_desc = '<i>'.l10n('Version').':</i> '.$plugin_info['revision_name']."\r\n"
+ .'<i>'.l10n('Released on').':</i> '.$date."\r\n"
+ .'<i>'.l10n('Downloads').':</i> '.$plugin_info['revision_nb_downloads']."\r\n"
+ ."\r\n"
+ .$plugin_info['revision_description'];
if ($plugins->plugin_version_compare($fs_plugin['version'], $plugin_info['revision_name']))
{
// Plugin is up to date
$template->append('plugins_uptodate', array(
- 'URL' => $fs_plugin['uri'],
+ 'URL' => PEM_URL.'/extension_view.php?eid='.$plugin_info['extension_id'],
'NAME' => $fs_plugin['name'],
- 'EXT_DESC' => $plugin_info['extension_description'],
- 'VERSION' => $fs_plugin['version']));
+ 'EXT_DESC' => $ext_desc,
+ 'VERSION' => $fs_plugin['version'],
+ 'VER_DESC' => $rev_desc));
}
else
{
@@ -131,12 +137,11 @@ if ($plugins->get_server_plugins())
$template->append('plugins_not_uptodate', array(
'EXT_NAME' => $fs_plugin['name'],
- 'EXT_URL' => $fs_plugin['uri'],
- 'EXT_DESC' => $plugin_info['extension_description'],
+ 'EXT_URL' => PEM_URL.'/extension_view.php?eid='.$plugin_info['extension_id'],
+ 'EXT_DESC' => $ext_desc,
'VERSION' => $fs_plugin['version'],
- 'VERSION_URL' => PEM_URL.'/revision_view.php?rid='.$plugin_info['revision_id'],
'NEW_VERSION' => $plugin_info['revision_name'],
- 'NEW_VER_DESC' => $ver_desc,
+ 'NEW_VER_DESC' => $rev_desc,
'URL_UPDATE' => $url_auto_update,
'URL_DOWNLOAD' => $plugin_info['download_url'] . '&amp;origin=piwigo_download'));
}