mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-29 13:03:48 +02:00
add AdminTools to trunk
git-svn-id: http://piwigo.org/svn/trunk@28694 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
|
||||
|
||||
class AdminTools_maintain extends PluginMaintain
|
||||
{
|
||||
private $default_conf = array(
|
||||
'default_open' => true,
|
||||
'closed_position' => 'left',
|
||||
'public_quick_edit' => true,
|
||||
);
|
||||
|
||||
function install($plugin_version, &$errors=array())
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if (empty($conf['AdminTools']))
|
||||
{
|
||||
conf_update_param('AdminTools', $this->default_conf, true);
|
||||
}
|
||||
}
|
||||
|
||||
function update($old_version, $new_version, &$errors=array())
|
||||
{
|
||||
$this->install($new_version, $errors);
|
||||
}
|
||||
|
||||
function uninstall()
|
||||
{
|
||||
conf_delete_param('AdminTools');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user