summaryrefslogtreecommitdiff
path: root/plugins/odfviewer
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-10-17 09:54:25 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2012-10-17 09:54:25 (GMT)
commit2d08c58e56ebe9c0dd8c55679c887714178ed994 (patch)
tree7a4c5210fbfa9cdf5638181539c0b13d1a2a8bed /plugins/odfviewer
parent5be0b06fcbf61dacd493467b57041f808b04f1c7 (diff)
downloadroundcubemail-plugins-kolab-2d08c58e56ebe9c0dd8c55679c887714178ed994.tar.gz
Fix/prepare plugins to use out of Roundcube (where rcmail object doesn't exist)
Diffstat (limited to 'plugins/odfviewer')
-rw-r--r--plugins/odfviewer/odfviewer.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/odfviewer/odfviewer.php b/plugins/odfviewer/odfviewer.php
index 3ffb5b1..da96747 100644
--- a/plugins/odfviewer/odfviewer.php
+++ b/plugins/odfviewer/odfviewer.php
@@ -57,7 +57,7 @@ class odfviewer extends rcube_plugin
if ($ua->ie && $ua->ver < 9)
return;
// extend list of mimetypes that should open in preview
- $rcmail = rcmail::get_instance();
+ $rcmail = rcube::get_instance();
if ($rcmail->action == 'preview' || $rcmail->action == 'show' || $rcmail->task == 'calendar' || $rcmail->task == 'tasks') {
$mimetypes = $rcmail->config->get('client_mimetypes', 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/x-javascript,application/pdf,application/x-shockwave-flash');
if (!is_array($mimetypes))
@@ -87,7 +87,7 @@ class odfviewer extends rcube_plugin
}
else {
$fp = fopen($tempfn, 'w');
- $imap = rcmail::get_instance()->get_storage();
+ $imap = rcube::get_instance()->get_storage();
$imap->get_message_part($args['uid'], $args['id'], $args['part'], false, $fp);
fclose($fp);
}
@@ -138,7 +138,7 @@ class odfviewer extends rcube_plugin
*/
function gc_cleanup()
{
- $rcmail = rcmail::get_instance();
+ $rcmail = rcube::get_instance();
$tmp = unslashify($this->tempdir);
$expire = mktime() - 172800; // expire in 48 hours