Fix some plugins for use without rcmail class

pull/284/head^2
Aleksander Machniak 10 years ago
parent a567d85bf9
commit 1c861df079

@ -50,7 +50,7 @@ class filesystem_attachments extends rcube_plugin
{
$args['status'] = false;
$group = $args['group'];
$rcmail = rcmail::get_instance();
$rcmail = rcube::get_instance();
// use common temp dir for file uploads
$temp_dir = $rcmail->config->get('temp_dir');
@ -78,7 +78,7 @@ class filesystem_attachments extends rcube_plugin
$args['status'] = false;
if (!$args['path']) {
$rcmail = rcmail::get_instance();
$rcmail = rcube::get_instance();
$temp_dir = $rcmail->config->get('temp_dir');
$tmp_path = tempnam($temp_dir, 'rcmAttmnt');
@ -160,7 +160,7 @@ class filesystem_attachments extends rcube_plugin
function file_id()
{
$userid = rcmail::get_instance()->user->ID;
$userid = rcube::get_instance()->user->ID;
list($usec, $sec) = explode(' ', microtime());
$id = preg_replace('/[^0-9]/', '', $userid . $sec . $usec);

@ -63,7 +63,7 @@ class redundant_attachments extends filesystem_attachments
return;
}
$rcmail = rcmail::get_instance();
$rcmail = rcube::get_instance();
// load configuration
$this->load_config();

Loading…
Cancel
Save