aboutsummaryrefslogtreecommitdiffstats
path: root/admin/plugins_update.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-03-06 02:29:29 +0000
committerrvelices <rv-github@modusoptimus.com>2008-03-06 02:29:29 +0000
commitd96b476bd8dc2c38c68294a82c786c9d2a32d288 (patch)
treed199be649c85722649cacad548196a9fd643956b /admin/plugins_update.php
parent37446caa5c362d998be6e1343995a5a7548a98a6 (diff)
- plugins.php does only the tabsheet - nothing else
- need to review plugins_update.php upgrade action git-svn-id: http://piwigo.org/svn/trunk@2255 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/plugins_update.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/admin/plugins_update.php b/admin/plugins_update.php
index 43aab8d56..2799fa89b 100644
--- a/admin/plugins_update.php
+++ b/admin/plugins_update.php
@@ -1,7 +1,7 @@
<?php
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
-// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
+// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | file : $Id$
// | last update : $Date$
@@ -28,6 +28,16 @@ if( !defined("PHPWG_ROOT_PATH") )
die ("Hacking attempt!");
}
+$fs_plugins = get_fs_plugins();
+$my_base_url= get_root_url().'admin.php'.get_query_string_diff( array('upgrade', 'plugin', 'reactivate', 'action', 'upgradestatus') );
+
+$db_plugins = get_db_plugins();
+$db_plugins_by_id = array();
+foreach ($db_plugins as $db_plugin)
+{
+ $db_plugins_by_id[$db_plugin['id']] = $db_plugin;
+}
+
$template->set_filenames(array('plugins' => 'admin/plugins_update.tpl'));
@@ -113,7 +123,7 @@ if ($plugins_infos !== false)
else
{
// Plugin need upgrade
- $url_auto_update = htmlentities($my_base_url)
+ $url_auto_update = $my_base_url
. '&amp;plugin=' . $plugin_id
. (
(isset($db_plugins_by_id[$plugin_id])
@@ -154,4 +164,5 @@ else
array_push($page['errors'], l10n('plugins_server_error'));
}
+$template->assign_var_from_handle('ADMIN_CONTENT', 'plugins');
?> \ No newline at end of file