From bf673c895b33404bb310e6bb22a6b98ba9ea4673 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 14 Aug 2010 11:45:44 -0400 Subject: [PATCH] use injector for Vfs --- whups/lib/Driver/sql.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/whups/lib/Driver/sql.php b/whups/lib/Driver/sql.php index b97799c92..d40ef424f 100644 --- a/whups/lib/Driver/sql.php +++ b/whups/lib/Driver/sql.php @@ -1218,13 +1218,8 @@ class Whups_Driver_sql extends Whups_Driver { Horde::logMessage($attachments, 'ERR'); return $attachments; } - require_once 'VFS.php'; - $vfs = &VFS::singleton($GLOBALS['conf']['vfs']['type'], - Horde::getDriverConfig('vfs')); - if (is_a($vfs, 'PEAR_Error')) { - return $vfs; - } + $vfs = $GLOBALS['injector']->getInstance('Horde_Vfs')->getVfs(); while ($attachment = $attachments->fetchRow(DB_FETCHMODE_ASSOC)) { $dir = WHUPS_VFS_ATTACH_PATH . '/' . $attachment['ticket_id']; if ($vfs->exists($dir, $attachment['log_value'])) { -- 2.11.0