Backup plugin fixes.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-05-31 06:33:37 +00:00
parent 49dc7146e4
commit a9c6ba9391
1 changed files with 8 additions and 2 deletions

View File

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