From 9bbf6d4a8d9f2cca5684cd227a53dd605216ac04 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Thu, 20 Jul 2006 11:39:32 +0000 Subject: [PATCH] Add new links to check for upgradable SPARTACUS plugins --- docs/NEWS | 3 +++ include/admin/plugins.inc.php | 10 +++++++++- .../UTF-8/lang_de.inc.php | 10 ++++++++++ .../lang_de.inc.php | 10 ++++++++++ .../lang_en.inc.php | 3 +++ .../serendipity_event_spartacus.php | 20 ++++++++++++++++++- 6 files changed, 54 insertions(+), 2 deletions(-) diff --git a/docs/NEWS b/docs/NEWS index 7885682..95dc6c0 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 1.1-alpha7() ------------------------------------------------------------------------ + * Add new links to check for upgradable SPARTACUS plugins + (garvinhicking) + * Add new frontend view "Archive by Authors": /archive/Axx.html to view the archive listing for specific authors only (like viewing archive by specific categories only via /archive/Cxx.html etc.) diff --git a/include/admin/plugins.inc.php b/include/admin/plugins.inc.php index 61c7da1..e5590f1 100644 --- a/include/admin/plugins.inc.php +++ b/include/admin/plugins.inc.php @@ -198,6 +198,8 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) { foreach($pluginstack AS $plugname => $plugdata) { if ($serendipity['GET']['only_group'] == 'ALL') { $pluggroups['ALL'][] = $plugdata; + } elseif ($serendipity['GET']['only_group'] == 'UPGRADE' && $plugdata['upgradable']) { + $pluggroups['UPGRADE'][] = $plugdata; } elseif (is_array($plugdata['groups'])) { foreach($plugdata['groups'] AS $group) { $pluggroups[$group][] = $plugdata; @@ -211,6 +213,10 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) { foreach($errorstack as $e_idx => $e_name) { echo ERROR . ': ' . $e_name . '
'; } + + if ($serendipity['GET']['only_group'] == 'UPGRADE') { + serendipity_plugin_api::hook_event('backend_pluginlisting_header_upgrade', $pluggroups); + } ?> " >