mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
Corrections in plugins management.
Add "Last revisions" sort order. git-svn-id: http://piwigo.org/svn/trunk@2272 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
e834737e84
commit
ff19a8f1cd
13 changed files with 116 additions and 48 deletions
|
@ -46,4 +46,22 @@ function get_admin_plugin_menu_link($file)
|
|||
}
|
||||
return $url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set tabsheet for plugins pages.
|
||||
* @param string selected page.
|
||||
*/
|
||||
function set_plugins_tabsheet($selected)
|
||||
{
|
||||
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
|
||||
|
||||
$link = get_root_url().'admin.php?page=';
|
||||
|
||||
$tabsheet = new tabsheet();
|
||||
$tabsheet->add('plugins_list', l10n('plugins_tab_list'), $link.'plugins_list');
|
||||
$tabsheet->add('plugins_update', l10n('plugins_tab_update'), $link.'plugins_update');
|
||||
$tabsheet->add('plugins_new', l10n('plugins_tab_new'), $link.'plugins_new');
|
||||
$tabsheet->select($selected);
|
||||
$tabsheet->assign();
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue