Commit 49bbfdf3 authored by Jean-Paul Saman's avatar Jean-Paul Saman

setup.php: update code to web2project 3.2 API.

parent 135fff66
......@@ -18,6 +18,8 @@ $config['mod_type'] = 'user';
$config['mod_ui_name'] = 'Backup';
$config['mod_ui_icon'] = 'companies.gif';
$config['mod_description'] = 'A module for backing up the database';
$config['mod_config'] = false;
$config['mod_main_class'] = 'CBackup';
if (@$a == 'setup') {
echo w2PshowModuleConfig( $config );
......@@ -26,15 +28,16 @@ if (@$a == 'setup') {
class CSetupBackup {
function install() {
return null;
return parent::install();
}
function remove() {
return null;
return parent::remove();
}
function upgrade() {
return null;
// Do nothing
return true;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment