From: Michael M Slusarz Date: Mon, 23 Feb 2009 07:08:53 +0000 (-0700) Subject: Unneeded require statements. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4a1e28a9b4d1f2b097522af95cfd24fe3a489cf3;p=horde.git Unneeded require statements. --- diff --git a/imp/lib/Mime/Viewer/plain.php b/imp/lib/Mime/Viewer/plain.php index 86f0ebcdf..e875c14da 100644 --- a/imp/lib/Mime/Viewer/plain.php +++ b/imp/lib/Mime/Viewer/plain.php @@ -262,7 +262,6 @@ class IMP_Horde_Mime_Viewer_plain extends Horde_Mime_Viewer_plain /* Don't want to use convert_uudecode() here as there may be multiple * files residing in the text. */ - require_once 'Mail/mimeDecode.php'; $files = &Mail_mimeDecode::uudecode($text); if (empty($files)) { return null; diff --git a/imp/lib/Quota.php b/imp/lib/Quota.php index 3948b8be4..4627228f3 100644 --- a/imp/lib/Quota.php +++ b/imp/lib/Quota.php @@ -68,7 +68,6 @@ class IMP_Quota static public function getInstance($driver, $params = array()) { $driver = basename($driver); - require_once dirname(__FILE__) . '/Quota/' . $driver . '.php'; $class = 'IMP_Quota_' . $driver; if (class_exists($class)) { diff --git a/imp/lib/Quota/sql.php b/imp/lib/Quota/sql.php index ecba1e086..92158e192 100644 --- a/imp/lib/Quota/sql.php +++ b/imp/lib/Quota/sql.php @@ -66,7 +66,6 @@ class IMP_Quota_sql extends IMP_Quota protected function _connect() { if (!$this->_connected) { - require_once 'DB.php'; $this->_db = &DB::connect($this->_params, array('persistent' => !empty($this->_params['persistent']), 'ssl' => !empty($this->_params['ssl']))); diff --git a/imp/lib/Sentmail/sql.php b/imp/lib/Sentmail/sql.php index e9b500092..97abbc0f0 100644 --- a/imp/lib/Sentmail/sql.php +++ b/imp/lib/Sentmail/sql.php @@ -55,7 +55,6 @@ class IMP_Sentmail_sql extends IMP_Sentmail } /* Connect to the SQL server using the supplied parameters. */ - require_once 'DB.php'; $this->_db = DB::connect($this->_params, array('persistent' => !empty($this->_params['persistent']), 'ssl' => !empty($this->_params['ssl'])));