aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/updates.class.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-04-23 12:48:05 +0000
committerpatdenice <patdenice@piwigo.org>2011-04-23 12:48:05 +0000
commit790f6b3bb6e4bf888a7fdb36f87a763cdb8ca450 (patch)
tree57cce0c848c48c18e17013138509e9d0b2bbbb03 /admin/include/updates.class.php
parentd7dfe63e113a069b05a363fa339db3cd7274ead1 (diff)
Change tabsheet place for plugins, themes and languages.
Plugins, themes and languages use same update page. git-svn-id: http://piwigo.org/svn/trunk@10594 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/updates.class.php')
-rw-r--r--admin/include/updates.class.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/admin/include/updates.class.php b/admin/include/updates.class.php
index b53001488..def4a1a2d 100644
--- a/admin/include/updates.class.php
+++ b/admin/include/updates.class.php
@@ -15,9 +15,14 @@ class updates
var $merged_extensions = array();
var $merged_extension_url = 'http://piwigo.org/download/merged_extensions.txt';
- function __construct()
+ function __construct($page='updates')
{
$this->types = array('plugins', 'themes', 'languages');
+
+ if (in_array($page, $this->types))
+ {
+ $this->types = array($page);
+ }
$this->default_themes = array('clear', 'dark', 'Sylvia');
$this->default_plugins = array('admin_multi_view', 'c13y_upgrade', 'language_switch', 'LocalFilesEditor');