aboutsummaryrefslogtreecommitdiffstats
path: root/admin/plugins_update.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2009-02-13 21:03:02 +0000
committerpatdenice <patdenice@piwigo.org>2009-02-13 21:03:02 +0000
commit35e9af66be0b6da3055d032123bd38100b58bca9 (patch)
treeae42252fa3a0c93a9bcfb9880dc4a2ba2b05019b /admin/plugins_update.php
parent164fd3a280f22a06153c6497e423199a0a97f7a0 (diff)
merge r3143 from trunk to branch 2.0
- 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/branches/2.0@3144 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'));
}