Backup plugin fixes.

git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-05-31 06:34:57 +00:00
parent 1cf5d38c2e
commit 61551a5880
1 changed files with 6 additions and 2 deletions

View File

@ -58,7 +58,6 @@ class wpdbBackup {
if ( !current_user_can('import') ) die(__('You are not allowed to perform backups.'));
add_action('init', array(&$this, 'init'));
} else {
if ( !current_user_can('import') ) die(__('You are not allowed to perform backups.'));
add_action('admin_menu', array(&$this, 'admin_menu'));
}
}
@ -884,6 +883,11 @@ class wpdbBackup {
} // wp_cron_db_backup
}
function wpdbBackup_init() {
global $mywpdbbackup;
$mywpdbbackup = new wpdbBackup();
}
add_action('plugins_loaded', 'wpdbBackup_init');
?>