s/rcube/rcmail/ for compatibility with the 0.8 series
| | |
| | | { |
| | | // check requirements first |
| | | if (!class_exists('ZipArchive', false)) { |
| | | rcube::raise_error(array( |
| | | rcmail::raise_error(array( |
| | | 'code' => 520, 'type' => 'php', |
| | | 'file' => __FILE__, 'line' => __LINE__, |
| | | 'message' => "php_zip extension is required for the zipdownload plugin"), true, false); |
| | |
| | | ); |
| | | |
| | | // append link to attachments list, slightly different in some skins |
| | | switch (rcube::get_instance()->config->get('skin')) { |
| | | switch (rcmail::get_instance()->config->get('skin')) { |
| | | case 'classic': |
| | | $p['content'] = str_replace('</ul>', html::tag('li', array('class' => 'zipdownload'), $link) . '</ul>', $p['content']); |
| | | break; |