Aleksander Machniak
2013-12-08 029f7a157da4be15302b3eaf40232c110d27bcf1
plugins/database_attachments/database_attachments.php
@@ -13,7 +13,9 @@
 * @author Aleksander Machniak <alec@alec.pl>
 * @version @package_version@
 */
require_once('plugins/filesystem_attachments/filesystem_attachments.php');
require_once INSTALL_PATH . 'plugins/filesystem_attachments/filesystem_attachments.php';
class database_attachments extends filesystem_attachments
{
    // Cache object
@@ -84,14 +86,10 @@
     */
    function remove($args)
    {
        $args['status'] = false;
        $cache  = $this->get_cache();
        $status = $cache->remove($args['id']);
        if ($status) {
            $args['status'] = true;
        }
        $args['status'] = true;
        return $args;
    }